WordPress.org

WordPress build repository browser

Changeset 41076


Ignore:
Timestamp:
08/09/17 04:07:43 (3 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.
Built from https://develop.svn.wordpress.org/trunk@41236

Location:
trunk/wp-includes
Files:
2 edited

Legend:

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

    r40910 r41076  
    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 ); 
  • trunk/wp-includes/version.php

    r41075 r41076  
    55 * @global string $wp_version 
    66 */ 
    7 $wp_version = '4.9-alpha-41235'; 
     7$wp_version = '4.9-alpha-41236'; 
    88 
    99/** 
Note: See TracChangeset for help on using the changeset viewer.