Make WordPress Core

Ticket #27093: 27093.patch

File 27093.patch, 1.7 KB (added by SergeyBiryukov, 11 years ago)
  • src/wp-admin/install.php

     
    7878 */
    7979function display_setup_form( $error = null ) {
    8080        global $wpdb;
    81         $user_table = ( $wpdb->get_var("SHOW TABLES LIKE '$wpdb->users'") != null );
    8281
    8382        // Ensure that Blogs appear in search engines by default
    8483        $blog_public = 1;
     
    103102                <tr>
    104103                        <th scope="row"><label for="user_login"><?php _e('Username'); ?></label></th>
    105104                        <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 ) ); ?>" />
    111106                                <p><?php _e( 'Usernames can have only alphanumeric characters, spaces, underscores, hyphens, periods and the @ symbol.' ); ?></p>
    112                         <?php
    113                         } ?>
    114107                        </td>
    115108                </tr>
    116                 <?php if ( ! $user_table ) : ?>
    117109                <tr>
    118110                        <th scope="row">
    119111                                <label for="admin_password"><?php _e('Password, twice'); ?></label>
     
    126118                                <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 ! " ? $ % ^ &amp; ).'); ?></p>
    127119                        </td>
    128120                </tr>
    129                 <?php endif; ?>
    130121                <tr>
    131122                        <th scope="row"><label for="admin_email"><?php _e( 'Your E-mail' ); ?></label></th>
    132123                        <td><input name="admin_email" type="text" id="admin_email" size="25" value="<?php echo esc_attr( $admin_email ); ?>" />