- Timestamp:
- 10/15/2025 08:28:51 PM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php
r59970 r60937 860 860 return $prepared_args; 861 861 } 862 863 if ( isset( $prepared_args['comment_content'] ) && empty( $prepared_args['comment_content'] ) ) { 862 if ( ! $this->check_is_comment_content_allowed( $prepared_args ) ) { 864 863 return new WP_Error( 865 864 'rest_comment_content_invalid', … … 1904 1903 */ 1905 1904 protected function check_is_comment_content_allowed( $prepared_comment ) { 1905 if ( ! isset( $prepared_comment['comment_content'] ) ) { 1906 return true; 1907 } 1908 1906 1909 $check = wp_parse_args( 1907 1910 $prepared_comment,
Note: See TracChangeset
for help on using the changeset viewer.