[wp-trac] [WordPress Trac] #63263: check if exists before accessing object properties of $post->comment_count

WordPress Trac noreply at wordpress.org
Mon Apr 14 07:04:24 UTC 2025


#63263: check if exists before accessing object properties of $post->comment_count
--------------------------------+------------------------------
 Reporter:  Presskopp           |       Owner:  (none)
     Type:  defect (bug)        |      Status:  new
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  Feeds               |     Version:
 Severity:  normal              |  Resolution:
 Keywords:  needs-testing-info  |     Focuses:
--------------------------------+------------------------------

Comment (by Presskopp):

 Weird. All I do after a fresh installation is

 * define('WP_DEBUG', true);
 * change permalinks to anything but 'Plain'
 * set a blog page
 * open that blog page and add a non existing page parameter like ?p=12345.
 * reload the page
 * see the warning

 It makes no difference which theme is active (talking about standard
 themes)

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63263#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list