From 46f15a84ab733e09f01f87f174dc9deba07ddad4 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Wed, 14 May 2014 16:42:42 +0000 Subject: [PATCH] Eliminate use of `extract()` in `display_setup_form()`. Only needs to read `password` and `password_message`. See #22400. git-svn-id: https://develop.svn.wordpress.org/trunk@28396 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/install.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/wp-admin/install.php b/src/wp-admin/install.php index 2955e49b0d..d363e2db7d 100644 --- a/src/wp-admin/install.php +++ b/src/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 ) ): ?> +
+ +