Make WordPress Core

Ticket #42945: 42945.diff

File 42945.diff, 4.8 KB (added by Presskopp, 6 years ago)
  • src/wp-admin/includes/ajax-actions.php

     
    11841184        if ( empty( $post->post_status ) ) {
    11851185                wp_die( 1 );
    11861186        } 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.' ) );
    11881188        }
    11891189
    11901190        $user = wp_get_current_user();
     
    12101210        }
    12111211
    12121212        if ( '' == $comment_content ) {
    1213                 wp_die( __( 'ERROR: please type a comment.' ) );
     1213                wp_die( __( 'ERROR: Please type a comment.' ) );
    12141214        }
    12151215
    12161216        $comment_parent = 0;
     
    13061306        }
    13071307
    13081308        if ( '' == $_POST['content'] ) {
    1309                 wp_die( __( 'ERROR: please type a comment.' ) );
     1309                wp_die( __( 'ERROR: Please type a comment.' ) );
    13101310        }
    13111311
    13121312        if ( isset( $_POST['status'] ) ) {
  • src/wp-admin/options.php

     
    156156        }
    157157
    158158        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.' ) );
    160160        }
    161161
    162162        if ( 'options' == $option_page ) {
  • src/wp-includes/comment.php

     
    11861186        $max_lengths = wp_get_comment_fields_max_lengths();
    11871187
    11881188        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 );
    11901190        }
    11911191
    11921192        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 );
    11941194        }
    11951195
    11961196        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 );
    11981198        }
    11991199
    12001200        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 );
    12021202        }
    12031203
    12041204        return true;
     
    32163216
    32173217        if ( get_option( 'require_name_email' ) && ! $user->exists() ) {
    32183218                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 );
    32203220                } 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 );
    32223222                }
    32233223        }
    32243224
    32253225        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 );
    32273227        }
    32283228
    32293229        $commentdata = compact(
  • src/wp-includes/ms-deprecated.php

     
    403403        // Must restore table names at the end of function.
    404404
    405405        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.' );
    407407
    408408        switch_to_blog($blog_id);
    409409        install_blog($blog_id);