WordPress.org

Make WordPress Core

Changeset 41236


Ignore:
Timestamp:
08/09/17 04:06:17 (2 months ago)
Author:
SergeyBiryukov
Message:

Link Template: Allow the type argument to be passed through get_the_comments_pagination() as long as its value isn't array.

See [30820] for `get_the_posts_pagination().

Props jainnidhi, poena.
Fixes #39792.

File:
1 edited

Legend:

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

    r41060 r41236  
    28732873    $args['echo'] = false; 
    28742874 
    2875     // Make sure we get plain links, so we get a string we can work with. 
    2876     $args['type'] = 'plain'; 
     2875    // Make sure we get a string back. Plain is the next best thing. 
     2876    if ( isset( $args['type'] ) && 'array' == $args['type'] ) { 
     2877        $args['type'] = 'plain'; 
     2878    } 
    28772879 
    28782880    $links = paginate_comments_links( $args ); 
Note: See TracChangeset for help on using the changeset viewer.