Changeset 42218
- Timestamp:
- 11/23/2017 05:23:01 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/setup-config.php
r42217 r42218 333 333 } 334 334 335 if ( ! preg_match( '/^define\(\ '([A-Z_]+)\',([ ]+)/', $line, $match ) )335 if ( ! preg_match( '/^define\(\s*\'([A-Z_]+)\',([ ]+)/', $line, $match ) ) 336 336 continue; 337 337 … … 344 344 case 'DB_PASSWORD' : 345 345 case 'DB_HOST' : 346 $config_file[ $line_num ] = "define( '" . $constant . "'," . $padding . "'" . addcslashes( constant( $constant ), "\\'" ) . "');\r\n";346 $config_file[ $line_num ] = "define( '" . $constant . "'," . $padding . "'" . addcslashes( constant( $constant ), "\\'" ) . "' );\r\n"; 347 347 break; 348 348 case 'DB_CHARSET' : 349 349 if ( 'utf8mb4' === $wpdb->charset || ( ! $wpdb->charset && $wpdb->has_cap( 'utf8mb4' ) ) ) { 350 $config_file[ $line_num ] = "define( '" . $constant . "'," . $padding . "'utf8mb4');\r\n";350 $config_file[ $line_num ] = "define( '" . $constant . "'," . $padding . "'utf8mb4' );\r\n"; 351 351 } 352 352 break; … … 359 359 case 'LOGGED_IN_SALT' : 360 360 case 'NONCE_SALT' : 361 $config_file[ $line_num ] = "define( '" . $constant . "'," . $padding . "'" . $secret_keys[$key++] . "');\r\n";361 $config_file[ $line_num ] = "define( '" . $constant . "'," . $padding . "'" . $secret_keys[$key++] . "' );\r\n"; 362 362 break; 363 363 }
Note: See TracChangeset
for help on using the changeset viewer.