diff --git a/src/wp-admin/setup-config.php b/src/wp-admin/setup-config.php index 2b5b7f89fb..c3a6f63988 100644 --- a/src/wp-admin/setup-config.php +++ b/src/wp-admin/setup-config.php @@ -166,8 +166,11 @@ switch($step) { break; case 2: - foreach ( array( 'dbname', 'uname', 'pwd', 'dbhost', 'prefix' ) as $key ) - $$key = trim( wp_unslash( $_POST[ $key ] ) ); + $dbname = trim( wp_unslash( $_POST[ 'dbname' ] ) ); + $uname = trim( wp_unslash( $_POST[ 'uname' ] ) ); + $pwd = trim( wp_unslash( $_POST[ 'pwd' ] ) ); + $dbhost = trim( wp_unslash( $_POST[ 'dbhost' ] ) ); + $prefix = trim( wp_unslash( $_POST[ 'prefix' ] ) ); $tryagain_link = '