Make WordPress Core

Changeset 53320


Ignore:
Timestamp:
04/30/2022 03:40:51 PM (5 years ago)
Author:
SergeyBiryukov
Message:

General: Account for WordPress coding standards in the Microsoft IIS configuration.

This makes sure that the rules for database credentials and authentication keys account for the spaces added as part of the formatting changes to match the WordPress coding standards in [42343/trunk/wp-config-sample.php] / #41057.

Follow-up to [42218], [42343].

Props fusecp, sabernhardt, costdev, SergeyBiryukov.
Fixes #53377.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/iis/parameters.xml

    r26870 r53320  
    7676<parameter
    7777        name="Automatic Database Server PHP File"
    78         defaultValue="define('DB_HOST', '{DbServer}');"
     78        defaultValue="define( 'DB_HOST', '{DbServer}' );"
    7979        tags="Hidden, MySQL"
    8080        >
    8181        <parameterEntry
    8282        type="TextFile"
    83         scope="wp-config.php$"
    84         match="define\('DB_HOST', '[^']*'\);"
     83        scope="wp-config\.php$"
     84        match="define\(\s*'DB_HOST',\s*'[^']*'\s*\);"
    8585        />
    8686</parameter>
    … …  
    101101<parameter
    102102        name="Automatic Database Name PHP File"
    103         defaultValue="define('DB_NAME', '{DbName}');"
     103        defaultValue="define( 'DB_NAME', '{DbName}' );"
    104104        tags="Hidden, MySQL"
    105105        >
    106106        <parameterEntry
    107107        type="TextFile"
    108         scope="wp-config.php$"
    109         match="define\('DB_NAME', '[^']*'\);"
     108        scope="wp-config\.php$"
     109        match="define\(\s*'DB_NAME',\s*'[^']*'\s*\);"
    110110        />
    111111</parameter>
    … …  
    132132<parameter
    133133        name="Automatic Database Username PHP File"
    134         defaultValue="define('DB_USER', '{DbUsername}');"
     134        defaultValue="define( 'DB_USER', '{DbUsername}' );"
    135135        tags="Hidden,MySQL"
    136136        >
    137137        <parameterEntry
    138138        type="TextFile"
    139         scope="wp-config.php$"
    140         match="define\('DB_USER', '[^']*'\);"
     139        scope="wp-config\.php$"
     140        match="define\(\s*'DB_USER',\s*'[^']*'\s*\);"
    141141        />
    142142</parameter>
    … …  
    156156<parameter
    157157        name="Automatic Database Password PHP File"
    158         defaultValue="define('DB_PASSWORD', '{DbPassword}');"
     158        defaultValue="define( 'DB_PASSWORD', '{DbPassword}' );"
    159159        tags="Hidden, MySQL"
    160160        >
    161161        <parameterEntry
    162162        type="TextFile"
    163         scope="wp-config.php$"
    164         match="define\('DB_PASSWORD', '[^']*'\);"
     163        scope="wp-config\.php$"
     164        match="define\(\s*'DB_PASSWORD',\s*'[^']*'\s*\);"
    165165        />
    166166</parameter>
    … …  
    238238<parameter
    239239        name="Automatic Auth Key PHP File"
    240         defaultValue="define('AUTH_KEY',         '{Authentication Key}');"
    241         tags="Hidden, NoStore"
    242         >
    243         <parameterEntry
    244                 type="TextFile"
    245                 scope="wp-config.php$"
    246                 match="define\('AUTH_KEY',\s*'[^']*'\);"
     240        defaultValue="define( 'AUTH_KEY',         '{Authentication Key}' );"
     241        tags="Hidden, NoStore"
     242        >
     243        <parameterEntry
     244                type="TextFile"
     245                scope="wp-config\.php$"
     246                match="define\(\s*'AUTH_KEY',\s*'[^']*'\s*\);"
    247247                />
    248248</parameter>
    … …  
    263263<parameter
    264264        name="Automatic Secure Auth Key PHP File"
    265         defaultValue="define('SECURE_AUTH_KEY',  '{Secure Authentication Key}');"
    266         tags="Hidden, NoStore"
    267         >
    268         <parameterEntry
    269                 type="TextFile"
    270                 scope="wp-config.php$"
    271                 match="define\('SECURE_AUTH_KEY',\s*'[^']*'\);"
     265        defaultValue="define( 'SECURE_AUTH_KEY',  '{Secure Authentication Key}' );"
     266        tags="Hidden, NoStore"
     267        >
     268        <parameterEntry
     269                type="TextFile"
     270                scope="wp-config\.php$"
     271                match="define\(\s*'SECURE_AUTH_KEY',\s*'[^']*'\s*\);"
    272272                />
    273273</parameter>
    … …  
    288288<parameter
    289289        name="Automatic Logged In Key PHP File"
    290         defaultValue="define('LOGGED_IN_KEY',    '{Logged In Key}');"
    291         tags="Hidden, NoStore"
    292         >
    293         <parameterEntry
    294                 type="TextFile"
    295                 scope="wp-config.php$"
    296                 match="define\('LOGGED_IN_KEY',\s*'[^']*'\);"
     290        defaultValue="define( 'LOGGED_IN_KEY',    '{Logged In Key}' );"
     291        tags="Hidden, NoStore"
     292        >
     293        <parameterEntry
     294                type="TextFile"
     295                scope="wp-config\.php$"
     296                match="define\(\s*'LOGGED_IN_KEY',\s*'[^']*'\s*\);"
    297297                />
    298298</parameter>
    … …  
    313313<parameter
    314314        name="Automatic Nonce Key PHP File"
    315         defaultValue="define('NONCE_KEY',        '{Nonce Key}');"
    316         tags="Hidden, NoStore"
    317         >
    318         <parameterEntry
    319                 type="TextFile"
    320                 scope="wp-config.php$"
    321                 match="define\('NONCE_KEY',\s*'[^']*'\);"
     315        defaultValue="define( 'NONCE_KEY',        '{Nonce Key}' );"
     316        tags="Hidden, NoStore"
     317        >
     318        <parameterEntry
     319                type="TextFile"
     320                scope="wp-config\.php$"
     321                match="define\(\s*'NONCE_KEY',\s*'[^']*'\s*\);"
    322322                />
    323323</parameter>
    … …  
    338338<parameter
    339339        name="Automatic Auth Salt PHP File"
    340         defaultValue="define('AUTH_SALT',        '{Authentication Salt}');"
    341         tags="Hidden, NoStore"
    342         >
    343         <parameterEntry
    344                 type="TextFile"
    345                 scope="wp-config.php$"
    346                 match="define\('AUTH_SALT',\s*'[^']*'\);"
     340        defaultValue="define( 'AUTH_SALT',        '{Authentication Salt}' );"
     341        tags="Hidden, NoStore"
     342        >
     343        <parameterEntry
     344                type="TextFile"
     345                scope="wp-config\.php$"
     346                match="define\(\s*'AUTH_SALT',\s*'[^']*'\s*\);"
    347347                />
    348348</parameter>
    … …  
    363363<parameter
    364364        name="Automatic Secure Auth Salt PHP File"
    365         defaultValue="define('SECURE_AUTH_SALT', '{Secure Authentication Salt}');"
    366         tags="Hidden, NoStore"
    367         >
    368         <parameterEntry
    369                 type="TextFile"
    370                 scope="wp-config.php$"
    371                 match="define\('SECURE_AUTH_SALT',\s*'[^']*'\);"
     365        defaultValue="define( 'SECURE_AUTH_SALT', '{Secure Authentication Salt}' );"
     366        tags="Hidden, NoStore"
     367        >
     368        <parameterEntry
     369                type="TextFile"
     370                scope="wp-config\.php$"
     371                match="define\(\s*'SECURE_AUTH_SALT',\s*'[^']*'\s*\);"
    372372                />
    373373</parameter>
    … …  
    388388<parameter
    389389        name="Automatic Logged In Salt PHP File"
    390         defaultValue="define('LOGGED_IN_SALT',   '{Logged In Salt}');"
    391         tags="Hidden, NoStore"
    392         >
    393         <parameterEntry
    394                 type="TextFile"
    395                 scope="wp-config.php$"
    396                 match="define\('LOGGED_IN_SALT',\s*'[^']*'\);"
     390        defaultValue="define( 'LOGGED_IN_SALT',   '{Logged In Salt}' );"
     391        tags="Hidden, NoStore"
     392        >
     393        <parameterEntry
     394                type="TextFile"
     395                scope="wp-config\.php$"
     396                match="define\(\s*'LOGGED_IN_SALT',\s*'[^']*'\s*\);"
    397397                />
    398398</parameter>
    … …  
    413413<parameter
    414414        name="Automatic Nonce Salt PHP File"
    415         defaultValue="define('NONCE_SALT',       '{Nonce Salt}');"
    416         tags="Hidden, NoStore"
    417         >
    418         <parameterEntry
    419                 type="TextFile"
    420                 scope="wp-config.php$"
    421                 match="define\('NONCE_SALT',\s*'[^']*'\);"
     415        defaultValue="define( 'NONCE_SALT',       '{Nonce Salt}' );"
     416        tags="Hidden, NoStore"
     417        >
     418        <parameterEntry
     419                type="TextFile"
     420                scope="wp-config\.php$"
     421                match="define\(\s*'NONCE_SALT',\s*'[^']*'\s*\);"
    422422                />
    423423</parameter>
Note: See TracChangeset for help on using the changeset viewer.