Ticket #27093: 27093.patch
File 27093.patch, 1.7 KB (added by , 11 years ago) |
---|
-
src/wp-admin/install.php
78 78 */ 79 79 function display_setup_form( $error = null ) { 80 80 global $wpdb; 81 $user_table = ( $wpdb->get_var("SHOW TABLES LIKE '$wpdb->users'") != null );82 81 83 82 // Ensure that Blogs appear in search engines by default 84 83 $blog_public = 1; … … 103 102 <tr> 104 103 <th scope="row"><label for="user_login"><?php _e('Username'); ?></label></th> 105 104 <td> 106 <?php 107 if ( $user_table ) { 108 _e('User(s) already exists.'); 109 } else { 110 ?><input name="user_name" type="text" id="user_login" size="25" value="<?php echo esc_attr( sanitize_user( $user_name, true ) ); ?>" /> 105 <input name="user_name" type="text" id="user_login" size="25" value="<?php echo esc_attr( sanitize_user( $user_name, true ) ); ?>" /> 111 106 <p><?php _e( 'Usernames can have only alphanumeric characters, spaces, underscores, hyphens, periods and the @ symbol.' ); ?></p> 112 <?php113 } ?>114 107 </td> 115 108 </tr> 116 <?php if ( ! $user_table ) : ?>117 109 <tr> 118 110 <th scope="row"> 119 111 <label for="admin_password"><?php _e('Password, twice'); ?></label> … … 126 118 <p><?php _e('Hint: The password should be at least seven characters long. To make it stronger, use upper and lower case letters, numbers and symbols like ! " ? $ % ^ & ).'); ?></p> 127 119 </td> 128 120 </tr> 129 <?php endif; ?>130 121 <tr> 131 122 <th scope="row"><label for="admin_email"><?php _e( 'Your E-mail' ); ?></label></th> 132 123 <td><input name="admin_email" type="text" id="admin_email" size="25" value="<?php echo esc_attr( $admin_email ); ?>" />