Ticket #38425: 38425.diff
File 38425.diff, 782 bytes (added by , 9 years ago) |
---|
-
src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php
418 418 if ( ! isset( $prepared_comment['comment_author_url'] ) ) { 419 419 $prepared_comment['comment_author_url'] = ''; 420 420 } 421 if ( ! isset( $prepared_comment['comment_agent'] ) ) { 422 $prepared_comment['comment_agent'] = ''; 423 } 421 424 422 $prepared_comment['comment_agent'] = '';423 425 $prepared_comment['comment_approved'] = wp_allow_comment( $prepared_comment, true ); 424 426 425 427 if ( is_wp_error( $prepared_comment['comment_approved'] ) ) {