Make WordPress Core

Changeset 30166


Ignore:
Timestamp:
11/01/2014 10:40:17 PM (10 years ago)
Author:
wonderboymusic
Message:

In get_the_pagination(), don't pass $links to _navigation_markup() if it is not a string - paginate_links() can return an array.

See #30224.

File:
1 edited

Legend:

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

    r30105 r30166  
    23342334        $links = paginate_links( $args );
    23352335
    2336         if ( $links ) {
     2336        // _navigation_markup() expects string,
     2337        // paginate_links() can return an array
     2338        if ( $links && ! is_array( $links ) ) {
    23372339            $navigation = _navigation_markup( $links, 'pagination' );
    23382340        }
Note: See TracChangeset for help on using the changeset viewer.