Ticket #58613: 58613.diff
File 58613.diff, 5.2 KB (added by , 2 years ago) |
---|
-
src/wp-admin/install.php
123 123 echo '<input name="user_name" type="hidden" value="admin" />'; 124 124 } else { 125 125 ?> 126 <input name="user_name" type="text" id="user_login" size="25" value="<?php echo esc_attr( sanitize_user( $user_name, true ) ); ?>" />127 <p ><?php _e( 'Usernames can have only alphanumeric characters, spaces, underscores, hyphens, periods, and the @ symbol.' ); ?></p>126 <input name="user_name" type="text" id="user_login" size="25" aria-describedby="user-name-desc" value="<?php echo esc_attr( sanitize_user( $user_name, true ) ); ?>" /> 127 <p id="user-name-desc"><?php _e( 'Usernames can have only alphanumeric characters, spaces, underscores, hyphens, periods, and the @ symbol.' ); ?></p> 128 128 <?php 129 129 } 130 130 ?> … … 141 141 <div class="wp-pwd"> 142 142 <?php $initial_password = isset( $_POST['admin_password'] ) ? stripslashes( $_POST['admin_password'] ) : wp_generate_password( 18 ); ?> 143 143 <div class="password-input-wrapper"> 144 <input type="password" name="admin_password" id="pass1" class="regular-text" autocomplete="new-password" spellcheck="false" data-reveal="1" data-pw="<?php echo esc_attr( $initial_password ); ?>" aria-describedby="pass-strength-result " />144 <input type="password" name="admin_password" id="pass1" class="regular-text" autocomplete="new-password" spellcheck="false" data-reveal="1" data-pw="<?php echo esc_attr( $initial_password ); ?>" aria-describedby="pass-strength-result admin-password-desc" /> 145 145 <div id="pass-strength-result" aria-live="polite"></div> 146 146 </div> 147 147 <button type="button" class="button wp-hide-pw hide-if-no-js" data-start-masked="<?php echo (int) isset( $_POST['admin_password'] ); ?>" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password' ); ?>"> … … 149 149 <span class="text"><?php _e( 'Hide' ); ?></span> 150 150 </button> 151 151 </div> 152 <p ><span class="description important hide-if-no-js">152 <p id="admin-password-desc"><span class="description important hide-if-no-js"> 153 153 <strong><?php _e( 'Important:' ); ?></strong> 154 154 <?php /* translators: The non-breaking space prevents 1Password from thinking the text "log in" should trigger a password save prompt. */ ?> 155 155 <?php _e( 'You will need this password to log in. Please store it in a secure location.' ); ?></span></p> … … 177 177 <?php endif; ?> 178 178 <tr> 179 179 <th scope="row"><label for="admin_email"><?php _e( 'Your Email' ); ?></label></th> 180 <td><input name="admin_email" type="email" id="admin_email" size="25" value="<?php echo esc_attr( $admin_email ); ?>" />181 <p ><?php _e( 'Double-check your email address before continuing.' ); ?></p></td>180 <td><input name="admin_email" type="email" id="admin_email" size="25" aria-describedby="admin-email-desc" value="<?php echo esc_attr( $admin_email ); ?>" /> 181 <p id="admin-email-desc"><?php _e( 'Double-check your email address before continuing.' ); ?></p></td> 182 182 </tr> 183 183 <tr> 184 184 <th scope="row"><?php has_action( 'blog_privacy_selector' ) ? _e( 'Site visibility' ) : _e( 'Search engine visibility' ); ?></th> … … 196 196 <?php 197 197 if ( has_action( 'blog_privacy_selector' ) ) { 198 198 ?> 199 <input id="blog-public" type="radio" name="blog_public" value="1" <?php checked( 1, $blog_public ); ?> />199 <input id="blog-public" type="radio" name="blog_public" aria-describedby="public-desc" value="1" <?php checked( 1, $blog_public ); ?> /> 200 200 <label for="blog-public"><?php _e( 'Allow search engines to index this site' ); ?></label><br /> 201 <input id="blog-norobots" type="radio" name="blog_public" value="0" <?php checked( 0, $blog_public ); ?> />201 <input id="blog-norobots" type="radio" name="blog_public" aria-describedby="public-desc" value="0" <?php checked( 0, $blog_public ); ?> /> 202 202 <label for="blog-norobots"><?php _e( 'Discourage search engines from indexing this site' ); ?></label> 203 <p class="description"><?php _e( 'Note: Neither of these options blocks access to your site — it is up to search engines to honor your request.' ); ?></p>203 <p id="public-desc" class="description"><?php _e( 'Note: Neither of these options blocks access to your site — it is up to search engines to honor your request.' ); ?></p> 204 204 <?php 205 205 /** This action is documented in wp-admin/options-reading.php */ 206 206 do_action( 'blog_privacy_selector' ); 207 207 } else { 208 208 ?> 209 <label for="blog_public"><input name="blog_public" type="checkbox" id="blog_public" value="0" <?php checked( 0, $blog_public ); ?> />209 <label for="blog_public"><input name="blog_public" type="checkbox" id="blog_public" aria-describedby="privacy-desc" value="0" <?php checked( 0, $blog_public ); ?> /> 210 210 <?php _e( 'Discourage search engines from indexing this site' ); ?></label> 211 <p class="description"><?php _e( 'It is up to search engines to honor this request.' ); ?></p>211 <p id="privacy-desc" class="description"><?php _e( 'It is up to search engines to honor this request.' ); ?></p> 212 212 <?php } ?> 213 213 </fieldset> 214 214 </td>