Hi, I encountered the same problem after a native WP search with no results.
I’have fixed the warning with instanceof WP_Post instead of is_object().
If it helps to patch the plugin for a future version.
public static function is_post_type( $post_type ) {
global $post;
return $post instanceof WP_Post
&& ( is_singular( $post_type ) || $post->post_type === $post_type );
}
It works !
<span class=”ljoptimizer” data-window=”new” data-loc=”MyBase64Link”></span>
Thank you