Plugin Directory

Changeset 591873


Ignore:
Timestamp:
08/29/2012 02:05:23 PM (14 years ago)
Author:
vicchi
Message:

Committing v1.0.1

Location:
wp-avertere/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-avertere/trunk/readme.txt

    r576080 r591873  
    55Requires at least: 3.4
    66Tested up to: 3.4.1
    7 Stable tag: 1.0.0
     7Stable tag: 1.0.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    104104== Changelog ==
    105105
    106 The current version is 1.0.0 (2012.07.17)
     106The current version is 1.0.1 (2012.08.29)
     107
     108= 1.0.1 =
     109* Released 2012.08.29
     110* Fixed: bug where the redirect URL was correctly saved but not shown in the plugin's meta box when a post/page is saved or updated.
    107111
    108112= 1.0.0 =
     
    111115
    112116== Upgrade Notice ==
     117
     118= 1.0.1 =
     119Bug fix release. Fixes bug where the redirect URL was correctly saved and used but not displayed in the plugin's meta box.
    113120
    114121= 1.0.0 =
  • wp-avertere/trunk/wp-avertere.php

    r576080 r591873  
    44Plugin URI: http://www.vicchi.org/codeage/wp-avertere/
    55Description: Set up and manage an HTTP 301/302 Redirect from the URL of any post type to another URL, either on your site or externally.
    6 Version: 1.0
     6Version: 1.0.1
    77Author: Gary Gale
    88Author URI: http://www.garygale.com/
     
    1818class WP_Avertere extends WP_PluginBase {
    1919    const OPTIONS = 'wp_avertere_settings';
    20     const VERSION = '100';
    21     const DISPLAY_VERSION = 'v1.0.0';
     20    const VERSION = '101';
     21    const DISPLAY_VERSION = 'v1.0.1';
    2222    const NONCE_NAME = 'wp-avertere-nonce';
    2323    const URL_KEY = 'wp-avertere-url';
     
    257257                case '000':
    258258                case '100':
     259                case '101':
    259260                    $settings['version'] = self::VERSION;
    260261                    $upgrade_settings = true;
     
    333334        $id = 'wp-avertere-url';
    334335        $text = sprintf (__('Enter the URL which this %s should be redirected to each time it\'s accessed using the Single %s Template', 'wp-avertere'), $pto->labels->singular_name, $pto->labels->singular_name);
    335         $url = esc_attr (get_post_meta ($post->ID, $name, true));
     336        $url = esc_attr (get_post_meta ($post->ID, self::URL_KEY, true));
    336337       
    337338        $content[] = wp_nonce_field (basename (__FILE__), self::NONCE_NAME);
     
    377378        $name = 'wp_avertere_type';
    378379        $id = 'wp-avertere-type';
    379         $meta = esc_attr (get_post_meta ($post->ID, $name, true));
     380        $meta = esc_attr (get_post_meta ($post->ID, self::TYPE_KEY, true));
    380381        if (!isset ($meta) || empty ($meta)) {
    381382            $meta = self::REDIRECT_PERMANENT;
Note: See TracChangeset for help on using the changeset viewer.