Don't use variable variables in `setup-config.php` (Step 2).

See #27881.

Built from https://develop.svn.wordpress.org/trunk@28744


git-svn-id: http://core.svn.wordpress.org/trunk@28558 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2014-06-11 19:41:14 +00:00
parent f014067f06
commit fd838ccb2b
1 changed files with 5 additions and 2 deletions

View File

@ -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 = '</p><p class="step"><a href="setup-config.php?step=1" onclick="javascript:history.go(-1);return false;" class="button button-large">' . __( 'Try again' ) . '</a>';