Plugin triggering repeated PHP warning messages
-
Hi there,
I’m using the Site Reviews plugin (v7.2.13) and noticed that it is triggering repeated PHP warning messages in the admin area:
PHP Warning: Attempt to read property "post_status" on null in wp-admin/includes/template.php on line XXXXThese warnings seem to be caused by code that attempts to access the
$postobject when it’s null — possibly in a metabox or admin screen hook. It would be great if you could add a simple check like:if ( isset($post) && $post instanceof WP_Post )This would prevent unnecessary warnings from appearing in the error logs. The issue doesn’t break the site, but it does clutter the logs.
Thanks for the great plugin and your ongoing work!
You must be logged in to reply to this topic.