Link Template: Allow the type
argument to be passed through get_the_comments_pagination()
as long as its value isn't array
.
See [30820] for `get_the_posts_pagination(). Props jainnidhi, poena. Fixes #39792. git-svn-id: https://develop.svn.wordpress.org/trunk@41236 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
4a8779feb9
commit
9ab26b8800
@ -2872,8 +2872,10 @@ function get_the_comments_pagination( $args = array() ) {
|
||||
) );
|
||||
$args['echo'] = false;
|
||||
|
||||
// Make sure we get plain links, so we get a string we can work with.
|
||||
$args['type'] = 'plain';
|
||||
// Make sure we get a string back. Plain is the next best thing.
|
||||
if ( isset( $args['type'] ) && 'array' == $args['type'] ) {
|
||||
$args['type'] = 'plain';
|
||||
}
|
||||
|
||||
$links = paginate_comments_links( $args );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user