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

WordPress Trac noreply at wordpress.org
Wed May 28 22:05:01 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
--------------------------+---------------------------
Changes (by DrewAPicture):

 * owner:   => DrewAPicture
 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"28602"]:
 {{{
 #!CommitTicketReference repository="" revision="28602"
 Fix parameter description for the `$post_id` argument in
 `get_comments_number()` to note that it is optional.

 Also fixes the corresponding filter docs, as `$post_id`, not `$post` is
 passed to the filter.

 See [27156]. Fixes #26240.
 }}}

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


More information about the wp-trac mailing list