[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 09:27:56 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 abcd95):

 Hi, @Presskopp. Thanks for raising this.

 Can you please sketch out the steps to reproduce the warning that you are
 observing?

 Additional information, like the WP version or the theme version that you
 are using, will be helpful.

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


More information about the wp-trac mailing list