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

WordPress Trac noreply at wordpress.org
Fri Apr 11 10:26:59 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:  General       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by dilipbheda):

 @Presskopp I can't reproduce the issue. When I visit a page that doesn't
 exist, it shows a 404 page.

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


More information about the wp-trac mailing list