Plugin Directory

Changeset 497385


Ignore:
Timestamp:
01/30/2012 04:01:36 PM (14 years ago)
Author:
easwy
Message:

update readme

Location:
wp-posturl/trunk
Files:
2 edited

Legend:

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

    r493701 r497385  
    55Requires at least: 2.7
    66Tested up to: 3.3.1
    7 Stable tag: 1.1
     7Stable tag: 2.1.0
    88
    99This plugin allows you to insert a user specific text (such as copyright,
     
    1313
    1414This 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,
     15ending of all your posts.  The text can be a copyright declaration,
    1616advertisement codes, etc. HTML codes are allowed.
    1717You can select which pages (home/single/feed/category/tag/archive page) to
     
    2525* %post_title% - the title of the post where the text is displayed
    2626
    27 If the header text is not empty, it will be inserted to the head of your post;
     27If the header text is not empty, it will be inserted to the head of your posts;
    2828otherwise no head text will be inserted.
    2929
    30 If the footer text is not empty, it will be inserted to the foot of your post;
     30If the footer text is not empty, it will be inserted to the foot of your posts;
    3131otherwise no footer text will be inserted.
    3232
     
    7676== Frequently Asked Questions ==
    7777
     78= Why my setting changes when I re-install/re-activate the plugin =
     79
     80In release 2.1.0, the "Add Header and/or Footer Text For Old Posts" option
     81will always be enabled when you re-install/re-activate the plugin. The reason
     82is to fix the issue in release 2.0.x series. In release 2.0.x, this option is
     83not defined because of WordPress behavior changes for plugin updating.
     84
    7885= Why WP-PostURL Does Not Add Text To My Posts =
    7986
     
    8188Old Posts" option. If not, select it then have a look.
    8289* 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 WordPress
     90* If it still not work, make sure regenerate the cache if you use a WordPress
    8491Cache Plugin (such as WP Super Cache), then have a look.
    8592
     
    104111== Changelog ==
    105112
     113= 2.1.0 =
     114
     115The 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
    106122= 2.0.2 =
    107123
    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)
    109125
    110126= 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)
    113129
    114130= 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)
    117133
    118134= 1.1 =
  • wp-posturl/trunk/wp-posturl.php

    r496823 r497385  
    181181                        break;
    182182                    default:
    183                         if ($old_options[$key] == 'Yes'
    184                             || $old_options[$key] === 'true'
    185                             || $old_options[$key] === true)
     183                        if (isset($old_options[$key]))
    186184                        {
    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                            }
    188195                        }
    189196                        else
Note: See TracChangeset for help on using the changeset viewer.