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

WordPress Trac noreply at wordpress.org
Fri Oct 24 05:24:25 UTC 2025


#63263: check if exists before accessing object properties of $post->comment_count
-------------------------------------------------+-------------------------
 Reporter:  Presskopp                            |       Owner:
                                                 |  westonruter
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  6.9
Component:  General                              |     Version:  2.8
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  needs-test-info has-screenshots      |     Focuses:
  has-patch has-unit-tests commit                |
-------------------------------------------------+-------------------------

Comment (by westonruter):

 In [changeset:"61058" 61058]:
 {{{
 #!CommitTicketReference repository="" revision="61058"
 General: Add comment explaining use of queried object in
 `feed_links_extra()` instead of global `$post`.

 Follow-up to [61056].

 Props mukesh27, westonruter.
 See #63263.
 }}}

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


More information about the wp-trac mailing list