Changeset 591873
- Timestamp:
- 08/29/2012 02:05:23 PM (14 years ago)
- Location:
- wp-avertere/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (3 diffs)
-
wp-avertere.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-avertere/trunk/readme.txt
r576080 r591873 5 5 Requires at least: 3.4 6 6 Tested up to: 3.4.1 7 Stable tag: 1.0. 07 Stable tag: 1.0.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 104 104 == Changelog == 105 105 106 The current version is 1.0.0 (2012.07.17) 106 The 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. 107 111 108 112 = 1.0.0 = … … 111 115 112 116 == Upgrade Notice == 117 118 = 1.0.1 = 119 Bug fix release. Fixes bug where the redirect URL was correctly saved and used but not displayed in the plugin's meta box. 113 120 114 121 = 1.0.0 = -
wp-avertere/trunk/wp-avertere.php
r576080 r591873 4 4 Plugin URI: http://www.vicchi.org/codeage/wp-avertere/ 5 5 Description: 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 6 Version: 1.0.1 7 7 Author: Gary Gale 8 8 Author URI: http://www.garygale.com/ … … 18 18 class WP_Avertere extends WP_PluginBase { 19 19 const OPTIONS = 'wp_avertere_settings'; 20 const VERSION = '10 0';21 const DISPLAY_VERSION = 'v1.0. 0';20 const VERSION = '101'; 21 const DISPLAY_VERSION = 'v1.0.1'; 22 22 const NONCE_NAME = 'wp-avertere-nonce'; 23 23 const URL_KEY = 'wp-avertere-url'; … … 257 257 case '000': 258 258 case '100': 259 case '101': 259 260 $settings['version'] = self::VERSION; 260 261 $upgrade_settings = true; … … 333 334 $id = 'wp-avertere-url'; 334 335 $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)); 336 337 337 338 $content[] = wp_nonce_field (basename (__FILE__), self::NONCE_NAME); … … 377 378 $name = 'wp_avertere_type'; 378 379 $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)); 380 381 if (!isset ($meta) || empty ($meta)) { 381 382 $meta = self::REDIRECT_PERMANENT;
Note: See TracChangeset
for help on using the changeset viewer.