Make WordPress Core

Ticket #43299: 43299.diff

File 43299.diff, 1.1 KB (added by anantajitjg, 7 years ago)
  • wp-includes/link-template.php

    diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php
    index 31ac27d..786f698 100644
    a b function previous_comments_link( $label = '' ) { 
    28962896 * @global WP_Rewrite $wp_rewrite
    28972897 *
    28982898 * @param string|array $args Optional args. See paginate_links(). Default empty array.
    2899  * @return string|void Markup for pagination links.
     2899 * @return array|string|void Markup for pagination links.
    29002900 */
    29012901function paginate_comments_links( $args = array() ) {
    29022902        global $wp_rewrite;
    function paginate_comments_links( $args = array() ) { 
    29162916                'total'        => $max_page,
    29172917                'current'      => $page,
    29182918                'echo'         => true,
     2919                'type'         => 'plain',
    29192920                'add_fragment' => '#comments',
    29202921        );
    29212922        if ( $wp_rewrite->using_permalinks() ) {
    function paginate_comments_links( $args = array() ) { 
    29252926        $args       = wp_parse_args( $args, $defaults );
    29262927        $page_links = paginate_links( $args );
    29272928
    2928         if ( $args['echo'] ) {
     2929        if ( $args['echo'] && $args['type'] !== 'array' ) {
    29292930                echo $page_links;
    29302931        } else {
    29312932                return $page_links;