X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/5d244c8fd9a27c9f89dd08da2af6fbc67d4fce63..7f1521bf193b382565eb753043c161f4cb3fcda7:/wp-admin/includes/class-wp-comments-list-table.php diff --git a/wp-admin/includes/class-wp-comments-list-table.php b/wp-admin/includes/class-wp-comments-list-table.php index 35a193f1..86358547 100644 --- a/wp-admin/includes/class-wp-comments-list-table.php +++ b/wp-admin/includes/class-wp-comments-list-table.php @@ -21,6 +21,10 @@ class WP_Comments_List_Table extends WP_List_Table { public $pending_count = array(); + public $extra_items; + + private $user_can; + /** * Constructor. * @@ -332,12 +336,6 @@ class WP_Comments_List_Table extends WP_List_Table { - - - print_column_headers( false ); ?> - - - display_rows_or_placeholder(); ?> @@ -345,6 +343,13 @@ class WP_Comments_List_Table extends WP_List_Table { items = $this->extra_items; $this->display_rows(); ?> + + + + print_column_headers( false ); ?> + + + comment_ID ); + if ( ! $the_comment_class ) { + $the_comment_class = ''; + } $the_comment_class = join( ' ', get_comment_class( $the_comment_class, $comment->comment_ID, $comment->comment_post_ID ) ); $post = get_post( $comment->comment_post_ID ); @@ -379,12 +387,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 +426,7 @@ class WP_Comments_List_Table extends WP_List_Table { echo ''; comment_text(); - if ( $user_can ) { ?> + if ( $this->user_can ) { ?>