Ticket #58168: 58168.patch
File 58168.patch, 670 bytes (added by , 2 years ago) |
---|
-
src/wp-admin/includes/comment.php
55 55 wp_die( __( 'Sorry, you are not allowed to edit comments on this post.' ) ); 56 56 } 57 57 58 if ( '' === $_POST['content'] ) { 59 wp_die( __( 'Please type your comment text.' ) ); 60 } 61 58 62 if ( isset( $_POST['newcomment_author'] ) ) { 59 63 $_POST['comment_author'] = $_POST['newcomment_author']; 60 64 } … … 134 138 return $comment; 135 139 } 136 140 137 /** 141 /**` 138 142 * Gets the number of pending comments on a post or posts. 139 143 * 140 144 * @since 2.3.0