[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 11:14:21 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 Presskopp):

 Interesting. I tried with Twenty Twenty-Five and Twenty Seventeen and I
 see the warning in both cases. Maybe it's because you have no posts at all
 or something!?

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


More information about the wp-trac mailing list