Setup: Allow for `wp-config-sample.php` to be formatted according to coding standards.
When the setup process reads `wp-config-sample.php`, it assumes that there are no spaces inside the brackes of the `define()`s. Unfortunately, this doesn't match our coding standards, so will no longer work correctly once we start enforcing them. This also improves coding standards of the generated `wp-config.php` file. See #41057. Built from https://develop.svn.wordpress.org/trunk@42218 git-svn-id: http://core.svn.wordpress.org/trunk@42047 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a779284c00
commit
871c6d2b45
|
@ -332,7 +332,7 @@ switch($step) {
|
|||
continue;
|
||||
}
|
||||
|
||||
if ( ! preg_match( '/^define\(\'([A-Z_]+)\',([ ]+)/', $line, $match ) )
|
||||
if ( ! preg_match( '/^define\(\s*\'([A-Z_]+)\',([ ]+)/', $line, $match ) )
|
||||
continue;
|
||||
|
||||
$constant = $match[1];
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.0-alpha-42217';
|
||||
$wp_version = '5.0-alpha-42218';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue