diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php
index fbe5259..30466c1 100644
|
a
|
b
|
class WP_REST_Comments_Controller extends WP_REST_Controller { |
| 560 | 560 | */ |
| 561 | 561 | $prepared_comment = apply_filters( 'rest_pre_insert_comment', $prepared_comment, $request ); |
| 562 | 562 | |
| | 563 | if ( is_wp_error( $prepared_comment ) ) { |
| | 564 | return $prepared_comment; |
| | 565 | } |
| | 566 | |
| 563 | 567 | $comment_id = wp_insert_comment( wp_filter_comment( wp_slash( (array) $prepared_comment ) ) ); |
| 564 | 568 | |
| 565 | 569 | if ( ! $comment_id ) { |