Make WordPress Core

Ticket #39792: 39792.diff

File 39792.diff, 604 bytes (added by jainnidhi, 8 years ago)

Patch attached.

  • wp-includes/link-template.php

    diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php
    index 4adc6c9..be157f7 100644
    a b function get_the_comments_pagination( $args = array() ) { 
    28722872        ) );
    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 );
    28792881