diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php index f462928847c77..facd23ac02421 100644 --- a/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php +++ b/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php @@ -920,7 +920,7 @@ public function update_item( $request ) { return new WP_Error( 'rest_comment_invalid_post_id', __( 'Invalid post ID.' ), - array( 'status' => 403 ) + array( 'status' => 404 ) ); } }