Make WordPress Core

Changeset 30819


Ignore:
Timestamp:
12/11/2014 09:36:14 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.

See #29808

File:
1 edited

Legend:

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

    r30753 r30819  
    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.