[wp-trac] [WordPress Trac] #48772: Missing post ID as parameter for get_comments_number_text()
WordPress Trac
noreply at wordpress.org
Tue Feb 11 20:39:24 UTC 2020
#48772: Missing post ID as parameter for get_comments_number_text()
------------------------------+-----------------------
Reporter: Hinjiriyo | Owner: donmhico
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.4
Component: Comments | Version: 4.0
Severity: normal | Resolution: fixed
Keywords: has-patch commit | Focuses:
------------------------------+-----------------------
Changes (by SergeyBiryukov):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"47276" 47276]:
{{{
#!CommitTicketReference repository="" revision="47276"
Comments: Add a `$post_id` parameter to `get_comments_number_text()` and
`comments_number()`.
This allow for using these functions outside of the loop.
Props donmhico, garrett-eclipse, Hinjiriyo, imath.
Fixes #48772.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48772#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list