Skip to content

Commit 35375c8

Browse files
committed
"block comments" to "notes"
1 parent 4833d19 commit 35375c8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1962,7 +1962,7 @@ protected function check_is_comment_content_allowed( $prepared_comment ) {
19621962
return true;
19631963
}
19641964

1965-
// Allow empty block comments only when resolution metadata is valid.
1965+
// Allow empty notes only when resolution metadata is valid.
19661966
if (
19671967
isset( $check['comment_type'] ) &&
19681968
'note' === $check['comment_type'] &&
@@ -1980,10 +1980,10 @@ protected function check_is_comment_content_allowed( $prepared_comment ) {
19801980
}
19811981

19821982
/**
1983-
* Check if post type supports block comments.
1983+
* Check if post type supports notes.
19841984
*
19851985
* @param string $post_type Post type name.
1986-
* @return bool True if post type supports block comments, false otherwise.
1986+
* @return bool True if post type supports notes, false otherwise.
19871987
*/
19881988
private function check_post_type_supports_notes( $post_type ) {
19891989
$supports = get_all_post_type_supports( $post_type );

0 commit comments

Comments
 (0)