WordPress: duplicate-post-common.php on line 149,duplicate-post-common.php on line 123エラーの修正方法
Notice: Trying to get property of non-object in \wp-content\plugins\duplicate-post\duplicate-post-common.php on line 149
Notice: Trying to get property of non-object in \wp-content\plugins\duplicate-post\duplicate-post-common.php on line 123
wp-content/plugins/duplicate-post/duplicate-post-common.php このファイルの下記の場所を修正でエラーは治ります。
Line 148 : if( duplicate_post_is_current_user_allowed_to_copy() replace with if( $post && duplicate_post_is_current_user_allowed_to_copy() Line 122 : if( duplicate_post_is_current_user_allowed_to_copy() replace with if( $post && duplicate_post_is_current_user_allowed_to_copy()
参考サイト
https://wordpress.org/support/topic/some-bug-exits-on-latest-version/