diff --git a/wp-admin/includes/ajax-actions.php b/wp-admin/includes/ajax-actions.php index a717397dde..f3751cb025 100644 --- a/wp-admin/includes/ajax-actions.php +++ b/wp-admin/includes/ajax-actions.php @@ -951,7 +951,7 @@ function wp_ajax_get_comments( $action ) { $x = new WP_Ajax_Response(); ob_start(); foreach ( $wp_list_table->items as $comment ) { - if ( ! current_user_can( 'edit_comment', $comment->comment_ID ) ) + if ( ! current_user_can( 'edit_comment', $comment->comment_ID ) && 0 === $comment->comment_approved ) continue; get_comment( $comment ); $wp_list_table->single_row( $comment ); diff --git a/wp-includes/version.php b/wp-includes/version.php index c60202fc22..d3d02ba0d0 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.6-alpha-37583'; +$wp_version = '4.6-alpha-37584'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.