Make WordPress Core

Ticket #38506: 38506.diff

File 38506.diff, 794 bytes (added by mangeshp, 8 years ago)
  • src/wp-includes/comment.php

     
    30033003        $max_lengths = wp_get_comment_fields_max_lengths();
    30043004
    30053005        if ( get_option( 'require_name_email' ) && ! $user->exists() ) {
    3006                 if ( 6 > strlen( $comment_author_email ) || '' == $comment_author ) {
     3006                if ( '' == $comment_author_email || '' == $comment_author ) {
    30073007                        return new WP_Error( 'require_name_email', __( '<strong>ERROR</strong>: please fill the required fields (name, email).' ), 200 );
    30083008                } elseif ( ! is_email( $comment_author_email ) ) {
    30093009                        return new WP_Error( 'require_valid_email', __( '<strong>ERROR</strong>: please enter a valid email address.' ), 200 );