From 1121efb54ced2ff76c2c51b2f7fabe0fe3542868 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Wed, 14 May 2014 16:43:15 +0000 Subject: [PATCH] Eliminate use of `extract()` in `display_setup_form()`. Only needs to read `password` and `password_message`. See #22400. Built from https://develop.svn.wordpress.org/trunk@28396 git-svn-id: http://core.svn.wordpress.org/trunk@28224 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/install.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/wp-admin/install.php b/wp-admin/install.php index 2955e49b0d..d363e2db7d 100644 --- a/wp-admin/install.php +++ b/wp-admin/install.php @@ -217,8 +217,7 @@ switch($step) { if ( $error === false ) { $wpdb->show_errors(); - $result = wp_install($weblog_title, $user_name, $admin_email, $public, '', wp_slash( $admin_password ) ); - extract( $result, EXTR_SKIP ); + $result = wp_install( $weblog_title, $user_name, $admin_email, $public, '', wp_slash( $admin_password ) ); ?>

@@ -233,9 +232,10 @@ switch($step) { '. esc_html($password) .'
'; - echo "

$password_message

"; ?> + if ( ! empty( $result['password'] ) && empty( $admin_password_check ) ): ?> +
+ +