WordPress.org

Make WordPress Core

Ticket #24982: 24982.3.diff

File 24982.3.diff, 2.2 KB (added by helen, 6 years ago)
  • wp-admin/css/install.css

     
    215215}
    216216
    217217.message {
    218         border: 1px solid #e6db55;
    219         padding: 0.3em 0.6em;
     218        border: 1px solid #c00;
     219        border-radius: 3px;
     220        padding: 0.5em 0.7em;
    220221        margin: 5px 0 15px;
    221         background-color: #ffffe0;
     222        background-color: #ffebe8;
    222223}
    223224
    224225/* install-rtl */
  • wp-admin/install.php

     
    9191
    9292        if ( ! is_null( $error ) ) {
    9393?>
    94 <p class="message"><?php printf( __( '<strong>ERROR</strong>: %s' ), $error ); ?></p>
     94<p class="message"><?php echo $error; ?></p>
    9595<?php } ?>
    9696<form id="setup" method="post" action="install.php?step=2">
    9797        <table class="form-table">
     
    199199                $error = false;
    200200                if ( empty( $user_name ) ) {
    201201                        // TODO: poka-yoke
    202                         display_setup_form( __('you must provide a valid username.') );
     202                        display_setup_form( __( 'Please provide a valid username.' ) );
    203203                        $error = true;
    204204                } elseif ( $user_name != sanitize_user( $user_name, true ) ) {
    205                         display_setup_form( __('the username you provided has invalid characters.') );
     205                        display_setup_form( __( 'The username you provided has invalid characters.' ) );
    206206                        $error = true;
    207207                } elseif ( $admin_password != $admin_password_check ) {
    208208                        // TODO: poka-yoke
    209                         display_setup_form( __( 'your passwords do not match. Please try again' ) );
     209                        display_setup_form( __( 'Your passwords do not match. Please try again' ) );
    210210                        $error = true;
    211211                } else if ( empty( $admin_email ) ) {
    212212                        // TODO: poka-yoke
    213                         display_setup_form( __( 'you must provide an e-mail address.' ) );
     213                        display_setup_form( __( 'You must provide an email address.' ) );
    214214                        $error = true;
    215215                } elseif ( ! is_email( $admin_email ) ) {
    216216                        // TODO: poka-yoke
    217                         display_setup_form( __( 'that isn&#8217;t a valid e-mail address. E-mail addresses look like: <code>username@example.com</code>' ) );
     217                        display_setup_form( __( 'Sorry, that isn&#8217;t a valid email address. Email addresses look like: <code>username@example.com</code>' ) );
    218218                        $error = true;
    219219                }
    220220