[wp-trac] [WordPress Trac] #10177: get_ version of comments_number()
WordPress Trac
wp-trac at lists.automattic.com
Mon Jun 15 16:33:42 GMT 2009
#10177: get_ version of comments_number()
--------------------------+-------------------------------------------------
Reporter: nbachiyski | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.9
Component: Template | Version: 2.8
Severity: normal | Keywords: has-patch i18n
--------------------------+-------------------------------------------------
Currently: {{{comments_number()}}} accepts several arguments for the
comment number labels and outputs them. {{{get_comments_number()}}},
however, returns only the number of comments.
Problem: there isn't a function to mimic the {{{comments_number()}}}
functionality, but to return instead of echo.
The patch introduces {{{get_comments_number_text()}}}, which inherits the
functionality of {{{comments_number()}}}, but returns.
{{{comments_number()}}} just calls {{{get_comments_number_text()}}}.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10177>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list