[wp-trac] [WordPress Trac] #48772: Missing post ID as parameter for get_comments_number_text()
WordPress Trac
noreply at wordpress.org
Fri Nov 22 22:33:48 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 | Keywords:
Focuses: |
-------------------------+-----------------------------
There is no way to pass the post ID to {{{get_comments_number_text()}}} to
use this function outside the loop.
After all, {{{get_comments_number_text()}}} calls
{{{get_comments_number()}}}. The latter function can be used outside the
loop because it uses the post ID as an optional parameter.
So, what about rectivating the deprecated fourth parameter of
{{{comments_number()}}} to pass the post ID, and extending
{{{get_comments_number()}}} by a fourth parameter to pass the post ID, for
using both functions outside of loops?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48772>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list