WordPress.org

Make WordPress Core

Changeset 28744


Ignore:
Timestamp:
06/11/2014 07:40:27 PM (7 years ago)
Author:
wonderboymusic
Message:

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

File:
1 edited

Legend:

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

    r27469 r28744  
    167167
    168168    case 2:
    169     foreach ( array( 'dbname', 'uname', 'pwd', 'dbhost', 'prefix' ) as $key )
    170         $$key = trim( wp_unslash( $_POST[ $key ] ) );
     169    $dbname = trim( wp_unslash( $_POST[ 'dbname' ] ) );
     170    $uname = trim( wp_unslash( $_POST[ 'uname' ] ) );
     171    $pwd = trim( wp_unslash( $_POST[ 'pwd' ] ) );
     172    $dbhost = trim( wp_unslash( $_POST[ 'dbhost' ] ) );
     173    $prefix = trim( wp_unslash( $_POST[ 'prefix' ] ) );
    171174
    172175    $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>';
Note: See TracChangeset for help on using the changeset viewer.