Please suppress notices for unset parameters
-
You have calls to duplicate_post_is_post_type_enabled() on lines 123 and 149 of duplicate-post-common.php that are passed $post parameters, however when viewing an admin section for a custom post type that does not have a “post_type” value set (for example, Contact Form 7), the following failures are generated:
Notice: Trying to get property of non-object in C:\Uniserver\www\Access Properties\new.access-properties.com\public_html\wp-content\plugins\duplicate-post\duplicate-post-common.php on line 123
Notice: Trying to get property of non-object in C:\Uniserver\www\Access Properties\new.access-properties.com\public_html\wp-content\plugins\duplicate-post\duplicate-post-common.php on line 149
Please update your plugin and adjust your calls to suppress notices for these parameters or add a conditional to check for the existence of the variable before making the call to duplicate_post_is_post_type_enabled().
Thanks!
The page I need help with: [log in to see the link]
- The topic ‘Please suppress notices for unset parameters’ is closed to new replies.