[wp-trac] [WordPress Trac] #48772: Missing post ID as parameter for get_comments_number_text()

WordPress Trac noreply at wordpress.org
Fri Jan 24 19:43:40 UTC 2020


#48772: Missing post ID as parameter for get_comments_number_text()
------------------------------------+-----------------------
 Reporter:  Hinjiriyo               |       Owner:  donmhico
     Type:  enhancement             |      Status:  assigned
 Priority:  normal                  |   Milestone:  5.4
Component:  Comments                |     Version:  4.0
 Severity:  normal                  |  Resolution:
 Keywords:  dev-feedback has-patch  |     Focuses:
------------------------------------+-----------------------

Comment (by donmhico):

 @Hinjiriyo
 [https://core.trac.wordpress.org/attachment/ticket/48772/48772.3.diff
 48772.3.diff] adds `$post_id` as the fifth parameter on
 `comments_number()`instead of remove the 4th `$deprecated` param. This is
 because looking in a past commit [34118], the  `$deprecated` was preserved
 and a new param was added instead.

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


More information about the wp-trac mailing list