WordPress.org

Make WordPress Core

Changeset 28396


Ignore:
Timestamp:
05/14/2014 04:42:42 PM (7 years ago)
Author:
wonderboymusic
Message:

Eliminate use of extract() in display_setup_form(). Only needs to read password and password_message.

See #22400.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/install.php

    r28306 r28396  
    218218        if ( $error === false ) {
    219219            $wpdb->show_errors();
    220             $result = wp_install($weblog_title, $user_name, $admin_email, $public, '', wp_slash( $admin_password ) );
    221             extract( $result, EXTR_SKIP );
     220            $result = wp_install( $weblog_title, $user_name, $admin_email, $public, '', wp_slash( $admin_password ) );
    222221?>
    223222
     
    234233        <th><?php _e( 'Password' ); ?></th>
    235234        <td><?php
    236         if ( ! empty( $password ) && empty($admin_password_check) )
    237             echo '<code>'. esc_html($password) .'</code><br />';
    238         echo "<p>$password_message</p>"; ?>
     235        if ( ! empty( $result['password'] ) && empty( $admin_password_check ) ): ?>
     236            <code><?php echo esc_html( $result['password'] ) ?></code><br />
     237        <?php endif ?>
     238            <p><?php echo $result['password_message'] ?></p>
    239239        </td>
    240240    </tr>
Note: See TracChangeset for help on using the changeset viewer.