Changeset 497385
- Timestamp:
- 01/30/2012 04:01:36 PM (14 years ago)
- Location:
- wp-posturl/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (6 diffs)
-
wp-posturl.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-posturl/trunk/readme.txt
r493701 r497385 5 5 Requires at least: 2.7 6 6 Tested up to: 3.3.1 7 Stable tag: 1.17 Stable tag: 2.1.0 8 8 9 9 This plugin allows you to insert a user specific text (such as copyright, … … 13 13 14 14 This plugin allows you to insert a user specific text at the beginning and/or 15 ending of all your post . The text can be a copyright declaration,15 ending of all your posts. The text can be a copyright declaration, 16 16 advertisement codes, etc. HTML codes are allowed. 17 17 You can select which pages (home/single/feed/category/tag/archive page) to … … 25 25 * %post_title% - the title of the post where the text is displayed 26 26 27 If the header text is not empty, it will be inserted to the head of your post ;27 If the header text is not empty, it will be inserted to the head of your posts; 28 28 otherwise no head text will be inserted. 29 29 30 If the footer text is not empty, it will be inserted to the foot of your post ;30 If the footer text is not empty, it will be inserted to the foot of your posts; 31 31 otherwise no footer text will be inserted. 32 32 … … 76 76 == Frequently Asked Questions == 77 77 78 = Why my setting changes when I re-install/re-activate the plugin = 79 80 In release 2.1.0, the "Add Header and/or Footer Text For Old Posts" option 81 will always be enabled when you re-install/re-activate the plugin. The reason 82 is to fix the issue in release 2.0.x series. In release 2.0.x, this option is 83 not defined because of WordPress behavior changes for plugin updating. 84 78 85 = Why WP-PostURL Does Not Add Text To My Posts = 79 86 … … 81 88 Old Posts" option. If not, select it then have a look. 82 89 * Please check "Add Post URL?" option for posts you want the text to be added. 83 * If it still not work, make sure regenerate the cache if you a WordPress90 * If it still not work, make sure regenerate the cache if you use a WordPress 84 91 Cache Plugin (such as WP Super Cache), then have a look. 85 92 … … 104 111 == Changelog == 105 112 113 = 2.1.0 = 114 115 The following change list is against version 1.1: 116 117 * Fix: Set "Add Header and/or Footer For Old Posts" to true by default, to fix no header/footer in release 2.0.x. If you uncheck this option but re-install or re-activate this plugin, you need configure it again. The problem in 2.0.x is because of a WordPress behavior changes. Link: [Plugin activation hooks no longer fire for updates](http://wpdevel.wordpress.com/2010/10/27/plugin-activation-hooks-no-longer-fire-for-updates/) 118 * New: Add single post control function, allow user control which posts display the user specific text. 119 * New: Add default post control behavior for old posts. 120 * New: Keep compatible with QingFeng's origin change of post control function. 121 106 122 = 2.0.2 = 107 123 108 * Fix: Set "Add Header and/or Footer For Old Posts" to true by default, to fix no header/footer in release 2.0.1. If you uncheck this option but re-install or re-activate this plugin, you need uncheck it again.124 * (This version is obsolete) 109 125 110 126 = 2.0.1 = 111 * New: Keep compatible with QingFeng's origin change of post control function. 112 * Fix: Add lost infomation in readme.txt.127 128 * (This version is obsolete) 113 129 114 130 = 2.0 = 115 * New: Add post control function, allow user control which posts display the user specific text. 116 * New: Add default post control behavior for existed posts.131 132 * (This version is obsolete) 117 133 118 134 = 1.1 = -
wp-posturl/trunk/wp-posturl.php
r496823 r497385 181 181 break; 182 182 default: 183 if ($old_options[$key] == 'Yes' 184 || $old_options[$key] === 'true' 185 || $old_options[$key] === true) 183 if (isset($old_options[$key])) 186 184 { 187 $new_options[$key] = true; 185 if ($old_options[$key] === 'Yes' 186 || $old_options[$key] === 'true' 187 || $old_options[$key] === true) 188 { 189 $new_options[$key] = true; 190 } 191 else 192 { 193 $new_options[$key] = false; 194 } 188 195 } 189 196 else
Note: See TracChangeset
for help on using the changeset viewer.