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. Built from https://develop.svn.wordpress.org/trunk@41236 git-svn-id: http://core.svn.wordpress.org/trunk@41076 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
dd330359eb
commit
5fe8d31118
|
@ -2872,8 +2872,10 @@ function get_the_comments_pagination( $args = array() ) {
|
||||||
) );
|
) );
|
||||||
$args['echo'] = false;
|
$args['echo'] = false;
|
||||||
|
|
||||||
// Make sure we get plain links, so we get a string we can work with.
|
// Make sure we get a string back. Plain is the next best thing.
|
||||||
$args['type'] = 'plain';
|
if ( isset( $args['type'] ) && 'array' == $args['type'] ) {
|
||||||
|
$args['type'] = 'plain';
|
||||||
|
}
|
||||||
|
|
||||||
$links = paginate_comments_links( $args );
|
$links = paginate_comments_links( $args );
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.9-alpha-41235';
|
$wp_version = '4.9-alpha-41236';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue