WordPress.org

Make WordPress Core

Ticket #16611: 16611.3.patch

File 16611.3.patch, 921 bytes (added by SergeyBiryukov, 4 years ago)
  • wp-admin/includes/class-wp-list-table.php

     
    420420                if ( $pending_comments ) 
    421421                        echo '<strong>'; 
    422422 
    423                 $link = "<a href='" . esc_url( add_query_arg( 'p', $post_id, admin_url( 'edit-comments.php' ) ) ) . "' title='" . esc_attr( $pending_phrase ) . "' class='post-com-count'><span class='comment-count'>%s</span></a>"; 
     423                echo "<a href='" . esc_url( add_query_arg( 'p', $post_id, admin_url( 'edit-comments.php' ) ) ) . "' title='" . esc_attr( $pending_phrase ) . "' class='post-com-count'><span class='comment-count'>" . number_format_i18n( get_comments_number() ) . "</span></a>"; 
    424424 
    425                 printf( $link, number_format_i18n( get_comments_number() ) ); 
    426  
    427425                if ( $pending_comments ) 
    428426                        echo '</strong>'; 
    429427        }