diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php index 0320efaae9..376959ad2a 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php @@ -1672,8 +1672,8 @@ class WP_REST_Comments_Controller extends WP_REST_Controller { return false; } - if ( ! current_user_can( 'moderate_comments' ) ) { - return false; + if ( current_user_can( 'moderate_comments' ) ) { + return true; } return current_user_can( 'edit_comment', $comment->comment_ID ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 08d8059fc0..f46843d35f 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.3-beta2-46432'; +$wp_version = '5.3-beta2-46433'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.