Closed Utsav-Ladani closed 8 months ago
Thanks for the report. If is_singular()
is true but get_post()
returns null then something is going wrong on your site. Do you know what the ajax request is doing where that error was triggered?
Thanks @johnbillion for quick response. It was due to another plugin (BuddyPress).
Description
Query Monitor
on the settings page '/wp-content.themes.php`Why?
null
, so nopost_content
such property exists.Solution
Add a check to verify that the post is not null