Make WordPress Core

Changeset 30820


Ignore:
Timestamp:
12/11/2014 09:38:18 AM (12 years ago)
Author:
johnbillion
Message:

Allow the type argument to be passed through get_the_pagination() as long as its value isn't array.

For trunk.

See #29808

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/link-template.php

    r30753 r30820  
    23152315                        'screen_reader_text' => __( 'Posts navigation' ),
    23162316                ) );
    2317                 // Make sure we get plain links, so we can work with it.
    2318                 $args['type'] = 'plain';
     2317
     2318                // Make sure we get a string back. Plain is the next best thing.
     2319                if ( isset( $args['type'] ) && 'array' == $args['type'] ) {
     2320                        $args['type'] = 'plain';
     2321                }
    23192322
    23202323                // Set up paginated links.
Note: See TracChangeset for help on using the changeset viewer.