WordPress.org

Make WordPress Core

Ticket #16611: 16611.2.patch

File 16611.2.patch, 948 bytes (added by SergeyBiryukov, 7 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                $link = "<a href='%s' title='" . esc_attr( $pending_phrase ) . "' class='post-com-count'><span class='comment-count'>%s</span></a>";
     424                $url = esc_url( add_query_arg( 'p', $post_id, admin_url( 'edit-comments.php' ) ) );
    424425
    425                 printf( $link, number_format_i18n( get_comments_number() ) );
     426                printf( $link, $url, number_format_i18n( get_comments_number() ) );
    426427
    427428                if ( $pending_comments )
    428429                        echo '</strong>';