mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 07:22:01 +01:00
Allow the type
argument to be passed through get_the_pagination()
as long as its value isn't array
.
For trunk. See #29808 Built from https://develop.svn.wordpress.org/trunk@30820 git-svn-id: http://core.svn.wordpress.org/trunk@30810 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5e3e3d0e0f
commit
31b74e57da
@ -2314,8 +2314,11 @@ function get_the_pagination( $args = array() ) {
|
||||
'next_text' => __( 'Next' ),
|
||||
'screen_reader_text' => __( 'Posts navigation' ),
|
||||
) );
|
||||
// Make sure we get plain links, so we can work with it.
|
||||
$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';
|
||||
}
|
||||
|
||||
// Set up paginated links.
|
||||
$links = paginate_links( $args );
|
||||
|
Loading…
Reference in New Issue
Block a user