Make WordPress Core

Ticket #29808: 29808.13.diff

File 29808.13.diff, 668 bytes (added by obenland, 10 years ago)

Allow list markup in post pagination.

  • src/wp-includes/link-template.php

     
    23142314                        'next_text'          => __( 'Next' ),
    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.
    23212324                $links = paginate_links( $args );