Changeset 47154
- Timestamp:
- 02/01/2020 08:53:14 PM (5 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ajax-actions.php
r47149 r47154 1273 1273 wp_die( 1 ); 1274 1274 } elseif ( in_array( $post->post_status, array( 'draft', 'pending', 'trash' ) ) ) { 1275 wp_die( __( 'ERROR: you are replying to a comment on a draft post.' ) );1275 wp_die( __( 'ERROR: You are replying to a comment on a draft post.' ) ); 1276 1276 } 1277 1277 … … 1303 1303 1304 1304 if ( '' == $comment_content ) { 1305 wp_die( __( 'ERROR: please type a comment.' ) );1305 wp_die( __( 'ERROR: Please type a comment.' ) ); 1306 1306 } 1307 1307 … … 1405 1405 1406 1406 if ( '' == $_POST['content'] ) { 1407 wp_die( __( 'ERROR: please type a comment.' ) );1407 wp_die( __( 'ERROR: Please type a comment.' ) ); 1408 1408 } 1409 1409 -
trunk/src/wp-admin/options.php
r47122 r47154 218 218 219 219 if ( ! isset( $whitelist_options[ $option_page ] ) ) { 220 wp_die( __( '<strong>ERROR</strong>: options page not found.' ) );220 wp_die( __( '<strong>ERROR</strong>: Options page not found.' ) ); 221 221 } 222 222 -
trunk/src/wp-includes/comment.php
r47122 r47154 1225 1225 1226 1226 if ( isset( $comment_data['comment_author'] ) && mb_strlen( $comment_data['comment_author'], '8bit' ) > $max_lengths['comment_author'] ) { 1227 return new WP_Error( 'comment_author_column_length', __( '<strong>ERROR</strong>: your name is too long.' ), 200 );1227 return new WP_Error( 'comment_author_column_length', __( '<strong>ERROR</strong>: Your name is too long.' ), 200 ); 1228 1228 } 1229 1229 1230 1230 if ( isset( $comment_data['comment_author_email'] ) && strlen( $comment_data['comment_author_email'] ) > $max_lengths['comment_author_email'] ) { 1231 return new WP_Error( 'comment_author_email_column_length', __( '<strong>ERROR</strong>: your email address is too long.' ), 200 );1231 return new WP_Error( 'comment_author_email_column_length', __( '<strong>ERROR</strong>: Your email address is too long.' ), 200 ); 1232 1232 } 1233 1233 1234 1234 if ( isset( $comment_data['comment_author_url'] ) && strlen( $comment_data['comment_author_url'] ) > $max_lengths['comment_author_url'] ) { 1235 return new WP_Error( 'comment_author_url_column_length', __( '<strong>ERROR</strong>: your url is too long.' ), 200 );1235 return new WP_Error( 'comment_author_url_column_length', __( '<strong>ERROR</strong>: Your url is too long.' ), 200 ); 1236 1236 } 1237 1237 1238 1238 if ( isset( $comment_data['comment_content'] ) && mb_strlen( $comment_data['comment_content'], '8bit' ) > $max_lengths['comment_content'] ) { 1239 return new WP_Error( 'comment_content_column_length', __( '<strong>ERROR</strong>: your comment is too long.' ), 200 );1239 return new WP_Error( 'comment_content_column_length', __( '<strong>ERROR</strong>: Your comment is too long.' ), 200 ); 1240 1240 } 1241 1241 … … 3353 3353 if ( get_option( 'require_name_email' ) && ! $user->exists() ) { 3354 3354 if ( '' == $comment_author_email || '' == $comment_author ) { 3355 return new WP_Error( 'require_name_email', __( '<strong>ERROR</strong>: please fill the required fields (name, email).' ), 200 );3355 return new WP_Error( 'require_name_email', __( '<strong>ERROR</strong>: Please fill the required fields (name, email).' ), 200 ); 3356 3356 } elseif ( ! is_email( $comment_author_email ) ) { 3357 return new WP_Error( 'require_valid_email', __( '<strong>ERROR</strong>: please enter a valid email address.' ), 200 );3357 return new WP_Error( 'require_valid_email', __( '<strong>ERROR</strong>: Please enter a valid email address.' ), 200 ); 3358 3358 } 3359 3359 } … … 3380 3380 $allow_empty_comment = apply_filters( 'allow_empty_comment', false, $commentdata ); 3381 3381 if ( '' === $comment_content && ! $allow_empty_comment ) { 3382 return new WP_Error( 'require_valid_comment', __( '<strong>ERROR</strong>: please type a comment.' ), 200 );3382 return new WP_Error( 'require_valid_comment', __( '<strong>ERROR</strong>: Please type a comment.' ), 200 ); 3383 3383 } 3384 3384 -
trunk/src/wp-includes/ms-deprecated.php
r47122 r47154 411 411 412 412 if ( ! $blog_id = insert_blog($domain, $path, $site_id) ) 413 return __( '<strong>ERROR</strong>: problem creating site entry.' );413 return __( '<strong>ERROR</strong>: Problem creating site entry.' ); 414 414 415 415 switch_to_blog($blog_id);
Note: See TracChangeset
for help on using the changeset viewer.