Changeset 48115 for trunk/src/wp-includes/comment.php
- Timestamp:
- 06/21/2020 01:58:46 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment.php
r48110 r48115 1244 1244 1245 1245 if ( isset( $comment_data['comment_author'] ) && mb_strlen( $comment_data['comment_author'], '8bit' ) > $max_lengths['comment_author'] ) { 1246 return new WP_Error( 'comment_author_column_length', __( ' Your name is too long.' ), 200 );1246 return new WP_Error( 'comment_author_column_length', __( '<strong>Error</strong>: Your name is too long.' ), 200 ); 1247 1247 } 1248 1248 1249 1249 if ( isset( $comment_data['comment_author_email'] ) && strlen( $comment_data['comment_author_email'] ) > $max_lengths['comment_author_email'] ) { 1250 return new WP_Error( 'comment_author_email_column_length', __( ' Your email address is too long.' ), 200 );1250 return new WP_Error( 'comment_author_email_column_length', __( '<strong>Error</strong>: Your email address is too long.' ), 200 ); 1251 1251 } 1252 1252 1253 1253 if ( isset( $comment_data['comment_author_url'] ) && strlen( $comment_data['comment_author_url'] ) > $max_lengths['comment_author_url'] ) { 1254 return new WP_Error( 'comment_author_url_column_length', __( ' Your URL is too long.' ), 200 );1254 return new WP_Error( 'comment_author_url_column_length', __( '<strong>Error</strong>: Your URL is too long.' ), 200 ); 1255 1255 } 1256 1256 1257 1257 if ( isset( $comment_data['comment_content'] ) && mb_strlen( $comment_data['comment_content'], '8bit' ) > $max_lengths['comment_content'] ) { 1258 return new WP_Error( 'comment_content_column_length', __( ' Your comment is too long.' ), 200 );1258 return new WP_Error( 'comment_content_column_length', __( '<strong>Error</strong>: Your comment is too long.' ), 200 ); 1259 1259 } 1260 1260 … … 3399 3399 if ( get_option( 'require_name_email' ) && ! $user->exists() ) { 3400 3400 if ( '' == $comment_author_email || '' == $comment_author ) { 3401 return new WP_Error( 'require_name_email', __( ' Please fill the required fields (name, email).' ), 200 );3401 return new WP_Error( 'require_name_email', __( '<strong>Error</strong>: Please fill the required fields (name, email).' ), 200 ); 3402 3402 } elseif ( ! is_email( $comment_author_email ) ) { 3403 return new WP_Error( 'require_valid_email', __( ' Please enter a valid email address.' ), 200 );3403 return new WP_Error( 'require_valid_email', __( '<strong>Error</strong>: Please enter a valid email address.' ), 200 ); 3404 3404 } 3405 3405 } … … 3426 3426 $allow_empty_comment = apply_filters( 'allow_empty_comment', false, $commentdata ); 3427 3427 if ( '' === $comment_content && ! $allow_empty_comment ) { 3428 return new WP_Error( 'require_valid_comment', __( ' Please type your comment text.' ), 200 );3428 return new WP_Error( 'require_valid_comment', __( '<strong>Error</strong>: Please type your comment text.' ), 200 ); 3429 3429 } 3430 3430 … … 3440 3440 3441 3441 if ( ! $comment_id ) { 3442 return new WP_Error( 'comment_save_error', __( ' The comment could not be saved. Please try again later.' ), 500 );3442 return new WP_Error( 'comment_save_error', __( '<strong>Error</strong>: The comment could not be saved. Please try again later.' ), 500 ); 3443 3443 } 3444 3444
Note: See TracChangeset
for help on using the changeset viewer.