[Plugin: Duplicate Post] Notices on v2.2: Undefined variable post; Trying to get property of non-obj
-
I just noticed that with v2.2 of the plugin, in the frontend (at least with debug messages on) the following notices appear:
Notice: Undefined variable: post in /Users/englebip/Sites/tipotango.nl/wp-content/plugins/duplicate-post/duplicate-post-common.php on line 104 Notice: Trying to get property of non-object in /Users/englebip/Sites/tipotango.nl/wp-content/plugins/duplicate-post/duplicate-post-common.php on line 104
Both get solved by adding a line to the beginning
duplicate_post_admin_bar_render()
function (line 91):global $post
Looking forward to having this in the next version; it’s really convenient to have access to the functionality in the admin bar!
- The topic ‘[Plugin: Duplicate Post] Notices on v2.2: Undefined variable post; Trying to get property of non-obj’ is closed to new replies.