WordPress.org

Make WordPress Core

Ticket #16611: 16611.patch

File 16611.patch, 1.3 KB (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='" . add_query_arg( 'p', $post_id, admin_url('edit-comments.php') ) . "' title='$pending_phrase' class='post-com-count'><span class='comment-count'>%s</span></a>";
     423                $link = "<a href='%s' title='$pending_phrase' class='post-com-count'><span class='comment-count'>%s</span></a>";
     424                $url = add_query_arg( 'p', $post_id, admin_url('edit-comments.php') );
    424425
    425426                comments_number(
    426                         sprintf( $link, /* translators: comment count link */ _x( '0', 'comment count' ) ),
    427                         sprintf( $link, /* translators: comment count link */ _x( '1', 'comment count' ) ),
    428                         sprintf( $link, /* translators: comment count link: % will be substituted by comment count */ _x( '%', 'comment count' ) )
     427                        sprintf( $link, $url, /* translators: comment count link */ _x( '0', 'comment count' ) ),
     428                        sprintf( $link, $url, /* translators: comment count link */ _x( '1', 'comment count' ) ),
     429                        sprintf( $link, $url, /* translators: comment count link: % will be substituted by comment count */ _x( '%', 'comment count' ) )
    429430                );
    430431
    431432                if ( $pending_comments )