Ticket #42945: 42945.diff
File 42945.diff, 4.8 KB (added by , 6 years ago) |
---|
-
src/wp-admin/includes/ajax-actions.php
1184 1184 if ( empty( $post->post_status ) ) { 1185 1185 wp_die( 1 ); 1186 1186 } elseif ( in_array( $post->post_status, array( 'draft', 'pending', 'trash' ) ) ) { 1187 wp_die( __( 'ERROR: you are replying to a comment on a draft post.' ) );1187 wp_die( __( 'ERROR: You are replying to a comment on a draft post.' ) ); 1188 1188 } 1189 1189 1190 1190 $user = wp_get_current_user(); … … 1210 1210 } 1211 1211 1212 1212 if ( '' == $comment_content ) { 1213 wp_die( __( 'ERROR: please type a comment.' ) );1213 wp_die( __( 'ERROR: Please type a comment.' ) ); 1214 1214 } 1215 1215 1216 1216 $comment_parent = 0; … … 1306 1306 } 1307 1307 1308 1308 if ( '' == $_POST['content'] ) { 1309 wp_die( __( 'ERROR: please type a comment.' ) );1309 wp_die( __( 'ERROR: Please type a comment.' ) ); 1310 1310 } 1311 1311 1312 1312 if ( isset( $_POST['status'] ) ) { -
src/wp-admin/options.php
156 156 } 157 157 158 158 if ( ! isset( $whitelist_options[ $option_page ] ) ) { 159 wp_die( __( '<strong>ERROR</strong>: options page not found.' ) );159 wp_die( __( '<strong>ERROR</strong>: Options page not found.' ) ); 160 160 } 161 161 162 162 if ( 'options' == $option_page ) { -
src/wp-includes/comment.php
1186 1186 $max_lengths = wp_get_comment_fields_max_lengths(); 1187 1187 1188 1188 if ( isset( $comment_data['comment_author'] ) && mb_strlen( $comment_data['comment_author'], '8bit' ) > $max_lengths['comment_author'] ) { 1189 return new WP_Error( 'comment_author_column_length', __( '<strong>ERROR</strong>: your name is too long.' ), 200 );1189 return new WP_Error( 'comment_author_column_length', __( '<strong>ERROR</strong>: Your name is too long.' ), 200 ); 1190 1190 } 1191 1191 1192 1192 if ( isset( $comment_data['comment_author_email'] ) && strlen( $comment_data['comment_author_email'] ) > $max_lengths['comment_author_email'] ) { 1193 return new WP_Error( 'comment_author_email_column_length', __( '<strong>ERROR</strong>: your email address is too long.' ), 200 );1193 return new WP_Error( 'comment_author_email_column_length', __( '<strong>ERROR</strong>: Your email address is too long.' ), 200 ); 1194 1194 } 1195 1195 1196 1196 if ( isset( $comment_data['comment_author_url'] ) && strlen( $comment_data['comment_author_url'] ) > $max_lengths['comment_author_url'] ) { 1197 return new WP_Error( 'comment_author_url_column_length', __( '<strong>ERROR</strong>: your url is too long.' ), 200 );1197 return new WP_Error( 'comment_author_url_column_length', __( '<strong>ERROR</strong>: Your url is too long.' ), 200 ); 1198 1198 } 1199 1199 1200 1200 if ( isset( $comment_data['comment_content'] ) && mb_strlen( $comment_data['comment_content'], '8bit' ) > $max_lengths['comment_content'] ) { 1201 return new WP_Error( 'comment_content_column_length', __( '<strong>ERROR</strong>: your comment is too long.' ), 200 );1201 return new WP_Error( 'comment_content_column_length', __( '<strong>ERROR</strong>: Your comment is too long.' ), 200 ); 1202 1202 } 1203 1203 1204 1204 return true; … … 3216 3216 3217 3217 if ( get_option( 'require_name_email' ) && ! $user->exists() ) { 3218 3218 if ( '' == $comment_author_email || '' == $comment_author ) { 3219 return new WP_Error( 'require_name_email', __( '<strong>ERROR</strong>: please fill the required fields (name, email).' ), 200 );3219 return new WP_Error( 'require_name_email', __( '<strong>ERROR</strong>: Please fill the required fields (name, email).' ), 200 ); 3220 3220 } elseif ( ! is_email( $comment_author_email ) ) { 3221 return new WP_Error( 'require_valid_email', __( '<strong>ERROR</strong>: please enter a valid email address.' ), 200 );3221 return new WP_Error( 'require_valid_email', __( '<strong>ERROR</strong>: Please enter a valid email address.' ), 200 ); 3222 3222 } 3223 3223 } 3224 3224 3225 3225 if ( '' == $comment_content ) { 3226 return new WP_Error( 'require_valid_comment', __( '<strong>ERROR</strong>: please type a comment.' ), 200 );3226 return new WP_Error( 'require_valid_comment', __( '<strong>ERROR</strong>: Please type a comment.' ), 200 ); 3227 3227 } 3228 3228 3229 3229 $commentdata = compact( -
src/wp-includes/ms-deprecated.php
403 403 // Must restore table names at the end of function. 404 404 405 405 if ( ! $blog_id = insert_blog($domain, $path, $site_id) ) 406 return __( '<strong>ERROR</strong>: problem creating site entry.' );406 return __( '<strong>ERROR</strong>: Problem creating site entry.' ); 407 407 408 408 switch_to_blog($blog_id); 409 409 install_blog($blog_id);