WordPress.org

Ready to get started?Download WordPress

Forums

Duplicate Post
[resolved] Undefined index on options page (3 posts)

  1. sickhippie
    Member
    Posted 2 years ago #

    As it says, I'm getting this PHP error on the options page. Notice: Undefined index: settings-updated in C:\wamp\www\wp-content\plugins\duplicate-post\duplicate-post-options.php on line 28

    I've temporarily fixed it by changing the line from:
    if ( current_user_can( 'edit_users' ) && $_GET['settings-updated'] == true){
    to
    if ( current_user_can( 'edit_users' ) && isset($_GET['settings-updated'])){
    I can't see anywhere in my install where $_GET['settings-updated'] would ever be set to anything other than true, so this should work. This is more of a heads up for the dev than anything else.

    http://wordpress.org/extend/plugins/duplicate-post/

  2. lopo
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,
    thank you for your suggestion, I'll try to find out some more about this, and fix it in the next version...

  3. lopo
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,
    version 2.3 (out now) includes the fix for this bug.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic