We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6a2ce1 commit 7e66010Copy full SHA for 7e66010
src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php
@@ -147,7 +147,7 @@ public function get_items_permissions_check( $request ) {
147
}
148
149
if ( $post && $is_note && ! $this->check_post_type_supports_notes( $post->post_type ) ) {
150
- if ( current_user_can( 'edit_post', $post->ID ) {
+ if ( current_user_can( 'edit_post', $post->ID ) ) {
151
return new WP_Error(
152
'rest_comment_not_supported_post_type',
153
__( 'Sorry, this post type does not support notes.' ),
0 commit comments