Ticket #24982: 24982.diff
File 24982.diff, 3.9 KB (added by , 11 years ago) |
---|
-
wp-admin/css/install.css
215 215 } 216 216 217 217 .message { 218 border: 1px solid # e6db55;218 border: 1px solid #F04040; 219 219 padding: 0.3em 0.6em; 220 220 margin: 5px 0 15px; 221 background-color: # ffffe0;221 background-color: #FFA0A0; 222 222 } 223 223 224 224 /* install-rtl */ -
wp-admin/install.php
91 91 92 92 if ( ! is_null( $error ) ) { 93 93 ?> 94 <p class="message"><?php printf( __( '<strong>ERROR</strong>: %s' ),$error ); ?></p>94 <p class="message"><?php echo esc_html( $error ); ?></p> 95 95 <?php } ?> 96 96 <form id="setup" method="post" action="install.php?step=2"> 97 97 <table class="form-table"> … … 100 100 <td><input name="weblog_title" type="text" id="weblog_title" size="25" value="<?php echo esc_attr( $weblog_title ); ?>" /></td> 101 101 </tr> 102 102 <tr> 103 <th scope="row"><label for="user_login"><?php _e ('Username'); ?></label></th>103 <th scope="row"><label for="user_login"><?php _ex( 'Username*', 'required' ); ?></label></th> 104 104 <td> 105 105 <?php 106 106 if ( $user_table ) { … … 112 112 } ?> 113 113 </td> 114 114 </tr> 115 <tr> 116 <th scope="row"><label for="admin_email"><?php _e( 'Your Email*' ); ?></label></th> 117 <td><input name="admin_email" type="text" id="admin_email" size="25" value="<?php echo esc_attr( $admin_email ); ?>" /> 118 <p><?php _e( 'Double-check your email address before continuing.' ); ?></p></td> 119 </tr> 115 120 <?php if ( ! $user_table ) : ?> 116 121 <tr> 117 122 <th scope="row"> … … 127 132 </tr> 128 133 <?php endif; ?> 129 134 <tr> 130 <th scope="row"><label for="admin_email"><?php _e( 'Your E-mail' ); ?></label></th>131 <td><input name="admin_email" type="text" id="admin_email" size="25" value="<?php echo esc_attr( $admin_email ); ?>" />132 <p><?php _e( 'Double-check your email address before continuing.' ); ?></p></td>133 </tr>134 <tr>135 135 <th scope="row"><label for="blog_public"><?php _e( 'Privacy' ); ?></label></th> 136 136 <td colspan="2"><label><input type="checkbox" name="blog_public" value="1" <?php checked( $blog_public ); ?> /> <?php _e( 'Allow search engines to index this site.' ); ?></label></td> 137 137 </tr> … … 199 199 $error = false; 200 200 if ( empty( $user_name ) ) { 201 201 // TODO: poka-yoke 202 display_setup_form( __( 'you must provide a valid username.') );202 display_setup_form( __( 'Please provide a valid username.' ) ); 203 203 $error = true; 204 204 } 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.' ) ); 206 206 $error = true; 207 207 } elseif ( $admin_password != $admin_password_check ) { 208 208 // 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' ) ); 210 210 $error = true; 211 211 } else if ( empty( $admin_email ) ) { 212 212 // TODO: poka-yoke 213 display_setup_form( __( ' you must provide an e-mail address.' ) );213 display_setup_form( __( 'You must provide an email address.' ) ); 214 214 $error = true; 215 215 } elseif ( ! is_email( $admin_email ) ) { 216 216 // TODO: poka-yoke 217 display_setup_form( __( ' that isn’t a valid e-mail address. E-mail addresses look like: <code>username@example.com</code>' ) );217 display_setup_form( __( 'Sorry, that isn’t a valid email address. Email addresses look like: <code>username@example.com</code>' ) ); 218 218 $error = true; 219 219 } 220 220 … … 230 230 231 231 <table class="form-table install-success"> 232 232 <tr> 233 <th><?php _e ( 'Username' ); ?></th>233 <th><?php _ex( 'Username', 'successful install' ); ?></th> 234 234 <td><?php echo esc_html( sanitize_user( $user_name, true ) ); ?></td> 235 235 </tr> 236 236 <tr>