wp core update 6.6
This commit is contained in:
@@ -237,7 +237,7 @@ class WP_Comments_List_Table extends WP_List_Table {
|
||||
$status_links = array();
|
||||
$num_comments = ( $post_id ) ? wp_count_comments( $post_id ) : wp_count_comments();
|
||||
|
||||
$stati = array(
|
||||
$statuses = array(
|
||||
/* translators: %s: Number of comments. */
|
||||
'all' => _nx_noop(
|
||||
'All <span class="count">(%s)</span>',
|
||||
@@ -282,7 +282,7 @@ class WP_Comments_List_Table extends WP_List_Table {
|
||||
);
|
||||
|
||||
if ( ! EMPTY_TRASH_DAYS ) {
|
||||
unset( $stati['trash'] );
|
||||
unset( $statuses['trash'] );
|
||||
}
|
||||
|
||||
$link = admin_url( 'edit-comments.php' );
|
||||
@@ -291,7 +291,7 @@ class WP_Comments_List_Table extends WP_List_Table {
|
||||
$link = add_query_arg( 'comment_type', $comment_type, $link );
|
||||
}
|
||||
|
||||
foreach ( $stati as $status => $label ) {
|
||||
foreach ( $statuses as $status => $label ) {
|
||||
if ( 'mine' === $status ) {
|
||||
$current_user_id = get_current_user_id();
|
||||
$num_comments->mine = get_comments(
|
||||
|
||||
Reference in New Issue
Block a user