Ticket #38506: 38506.diff
File 38506.diff, 794 bytes (added by , 8 years ago) |
---|
-
src/wp-includes/comment.php
3003 3003 $max_lengths = wp_get_comment_fields_max_lengths(); 3004 3004 3005 3005 if ( get_option( 'require_name_email' ) && ! $user->exists() ) { 3006 if ( 6 > strlen( $comment_author_email )|| '' == $comment_author ) {3006 if ( '' == $comment_author_email || '' == $comment_author ) { 3007 3007 return new WP_Error( 'require_name_email', __( '<strong>ERROR</strong>: please fill the required fields (name, email).' ), 200 ); 3008 3008 } elseif ( ! is_email( $comment_author_email ) ) { 3009 3009 return new WP_Error( 'require_valid_email', __( '<strong>ERROR</strong>: please enter a valid email address.' ), 200 );