Skip to content

Commit a21c51f

Browse files
Simplify note support check
Co-authored-by: Timothy Jacobs <[email protected]>
1 parent a208f84 commit a21c51f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2001,7 +2001,7 @@ private function check_post_type_supports_notes( $post_type ) {
20012001
return false;
20022002
}
20032003
foreach ( $supports['editor'] as $item ) {
2004-
if ( is_array( $item ) && isset( $item['notes'] ) && true === $item['notes'] ) {
2004+
if ( ! empty( $item['notes'] ) ) {
20052005
return true;
20062006
}
20072007
}

0 commit comments

Comments
 (0)