Changeset 21716 for trunk/wp-admin/setup-config.php
- Timestamp:
- 09/04/2012 02:46:01 AM (13 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/setup-config.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/setup-config.php
r21715 r21716 220 220 221 221 $key = 0; 222 foreach ( $config_file as &$line ) { 222 // Not a PHP5-style by-reference foreach, as this file must be parseable by PHP4. 223 foreach ( $config_file as $line_num => $line ) { 223 224 if ( '$table_prefix =' == substr( $line, 0, 16 ) ) { 224 $ line= '$table_prefix = \'' . addcslashes( $prefix, "\\'" ) . "';\r\n";225 $config_file[ $line_num ] = '$table_prefix = \'' . addcslashes( $prefix, "\\'" ) . "';\r\n"; 225 226 continue; 226 227 } … … 237 238 case 'DB_PASSWORD' : 238 239 case 'DB_HOST' : 239 $ line= "define('" . $constant . "'," . $padding . "'" . addcslashes( constant( $constant ), "\\'" ) . "');\r\n";240 $config_file[ $line_num ] = "define('" . $constant . "'," . $padding . "'" . addcslashes( constant( $constant ), "\\'" ) . "');\r\n"; 240 241 break; 241 242 case 'AUTH_KEY' : … … 247 248 case 'LOGGED_IN_SALT' : 248 249 case 'NONCE_SALT' : 249 $ line= "define('" . $constant . "'," . $padding . "'" . $secret_keys[$key++] . "');\r\n";250 $config_file[ $line_num ] = "define('" . $constant . "'," . $padding . "'" . $secret_keys[$key++] . "');\r\n"; 250 251 break; 251 252 }
Note: See TracChangeset
for help on using the changeset viewer.