[wp-trac] [WordPress Trac] #39792: get_the_comments_pagination should accept the list type argument
WordPress Trac
noreply at wordpress.org
Mon Feb 6 05:55:59 UTC 2017
#39792: get_the_comments_pagination should accept the list type argument
-------------------------+-----------------------------
Reporter: poena | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: 4.7.1
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
{{{get_the_comments_pagination}}} uses {{{paginate_links}}}, which allows
the following type arguments:
'plain', 'array' and 'list'. Default is 'plain'.
But compared to {{{get_the_posts_pagination}}} that changes 'array' to
'plain' but allows the 'list' type, {{{get_the_comments_pagination}}}
always sets it to 'plain'.
Comments:
{{{
// Make sure we get plain links, so we get a string we can work with.
$args['type'] = 'plain';
}}}
https://core.trac.wordpress.org/browser/tags/4.7/src/wp-includes/link-
template.php#L2868
Posts:
{{{
// Make sure we get a string back. Plain is the next best thing.
if ( isset( $args['type'] ) && 'array' == $args['type'] ) {
$args['type'] = 'plain';
}
}}}
https://core.trac.wordpress.org/browser/tags/4.7/src/wp-includes/link-
template.php#L2527
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39792>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list