One small fix
-
Hello
I really like your plugin, it’s great.
Just one small fix please, because it fills my debug.log:
File: wp-content\plugins\duplicate-post\duplicate-post-common.php
Lines: 149 and 123
There is condition
if( duplicate_post_is_current_user_allowed_to_copy()...
that need to be changed to
if( is_object( $post ) && duplicate_post_is_current_user_allowed_to_copy()
so just add
is_object( $post ) &&
afterif(
on both lines ??
it’s because your condition continues with some other check with variable$post->post_type
but on many pages in WP admin there is$post
not defined, eg. Contact Form 7 listing etc..
- The topic ‘One small fix’ is closed to new replies.