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

WordPress Trac noreply at wordpress.org
Fri Nov 29 21:06:57 UTC 2019


#48772: Missing post ID as parameter for get_comments_number_text()
------------------------------------+------------------------------
 Reporter:  Hinjiriyo               |       Owner:  (none)
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Comments                |     Version:  5.3
 Severity:  normal                  |  Resolution:
 Keywords:  dev-feedback has-patch  |     Focuses:
------------------------------------+------------------------------

Comment (by garrett-eclipse):

 Replying to [comment:2 Hinjiriyo]:
 > Great! Just a tiny hint:
 > {{{
 > @param int|WP_Post $post_id
 > }}}
 >   => I think it is only an int parameter.

 Reviewing the `get_comments_number` function which is passed the post_id
 it support WP_Post;
 https://developer.wordpress.org/reference/functions/get_comments_number/

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


More information about the wp-trac mailing list