Environment:
- WordPress 7.0.4
- PHP 8.4
- WPForo 3.1.4
- wpForo - Blog Cross Posting - 3.1.6
Error/Warning:
PHP Warning: Attempt to read property "ID" on null in /nas/content/live/oursite/wp-content/plugins/wpforo-cross-posting/wpForoCrossPosting.php on line 893
----
I don't want to create a patch to handle the warning, but it is filling up the logs, and I'd like to get it cleared up.
----
Root cause: wpForoCrossPosting::postContent() is hooked to the_content at priority 9999 and does global $post; $postID = $post->ID; with no null check. the_content fires in some contexts without a populated $post global (REST rendering, admin-ajax, certain widget/feed paths), so it throws.
---- theoretical patch I could drop into mu-plugins----
