diff --git a/wp-admin/includes/class-wp-comments-list-table.php b/wp-admin/includes/class-wp-comments-list-table.php index 3814f98bcf..73e5c82418 100644 --- a/wp-admin/includes/class-wp-comments-list-table.php +++ b/wp-admin/includes/class-wp-comments-list-table.php @@ -21,6 +21,8 @@ class WP_Comments_List_Table extends WP_List_Table { public $pending_count = array(); + public $extra_items; + /** * Constructor. * @@ -379,12 +381,10 @@ class WP_Comments_List_Table extends WP_List_Table { global $comment_status; $post = get_post(); - $user_can = $this->user_can; - $comment_url = esc_url( get_comment_link( $comment->comment_ID ) ); $the_comment_status = wp_get_comment_status( $comment->comment_ID ); - if ( $user_can ) { + if ( $this->user_can ) { $del_nonce = esc_html( '_wpnonce=' . wp_create_nonce( "delete-comment_$comment->comment_ID" ) ); $approve_nonce = esc_html( '_wpnonce=' . wp_create_nonce( "approve-comment_$comment->comment_ID" ) ); @@ -420,7 +420,7 @@ class WP_Comments_List_Table extends WP_List_Table { echo ''; comment_text(); - if ( $user_can ) { ?> + if ( $this->user_can ) { ?>