[wp-trac] [WordPress Trac] #26240: Allow get_comments_number() to accept post object

WordPress Trac noreply at wordpress.org
Wed May 28 22:35:22 UTC 2014


#26240: Allow get_comments_number() to accept post object
--------------------------+---------------------------
 Reporter:  coffee2code   |       Owner:  DrewAPicture
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.0
Component:  Comments      |     Version:
 Severity:  normal        |  Resolution:  fixed
 Keywords:  needs-patch   |     Focuses:  docs
--------------------------+---------------------------

Comment (by ocean90):

 In [changeset:"28604"]:
 {{{
 #!CommitTicketReference repository="" revision="28604"
 Pass `$post->ID` to `get_comments_number` filter.

 Also fixes indentation and a typo in corresponding filter docs.

 see #26240.
 }}}

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


More information about the wp-trac mailing list