[Resolved] [Plugin: Duplicate Post] Notice in 2.2
One of my front-facing plugin pages (where I’ve admittedly been messing with the post vars) I’m getting a Notice:
Notice: Undefined variable: post in /xxxxxxxxx/wp-content/plugins/duplicate-post/duplicate-post-common.php on line 104 Notice: Trying to get property of non-object in /xxxxxxxxxxx/wp-content/plugins/duplicate-post/duplicate-post-common.php on line 104
That’s this line:
'href' => duplicate_post_get_clone_post_link( $post->ID )
If I add $post to the global at the top of that function it makes the notice go away and all still seems to work fine. Interestingly enough, the link still works, despite the notice.
Just wanted to let you know in case it’s worth fixing in the next update. Thanks for the great work!
- The topic ‘[Resolved] [Plugin: Duplicate Post] Notice in 2.2’ is closed to new replies.