Make WordPress Core

Changeset 53800


Ignore:
Timestamp:
07/30/2022 02:08:13 PM (23 months ago)
Author:
SergeyBiryukov
Message:

Docs: Use more inclusive language in PHPCS configuration files.

Follow-up to [42346], [43348], [45455], [46290], [46820], [48121], [48477].

See #55646, #55647.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpcompat.xml.dist

    r53750 r53800  
    8383    </rule>
    8484
    85     <!-- Whitelist the WP DB Class for use of `mysql_` extension in PHP < 7.0. -->
     85    <!-- Allow the WP DB Class for use of `mysql_` extension in PHP < 7.0. -->
    8686    <rule ref="PHPCompatibility.Extensions.RemovedExtensions.mysql_DeprecatedRemoved">
    8787        <exclude-pattern>/src/wp-includes/class-wpdb\.php</exclude-pattern>
  • trunk/phpcs.xml.dist

    r53749 r53800  
    164164    <exclude-pattern>/src/wp-content/themes/(?!twenty)*</exclude-pattern>
    165165
    166     <!-- Whitelist the WP DB Class and related tests for usage of direct database access functions. -->
     166    <!-- Allow the WP DB Class and related tests for usage of direct database access functions. -->
    167167    <rule ref="WordPress.DB.RestrictedFunctions">
    168168        <exclude-pattern>/src/wp-includes/class-wpdb\.php</exclude-pattern>
     
    170170    </rule>
    171171
    172     <!-- Whitelist the WP DB related tests for issues with prepared SQL placeholders
     172    <!-- Allow the WP DB related tests for issues with prepared SQL placeholders
    173173         (as the handling of those are being tested). -->
    174174    <rule ref="WordPress.DB.PreparedSQLPlaceholders.UnfinishedPrepare">
     
    186186    </rule>
    187187
    188     <!-- Whitelist the I18n functions file from issues identified by the I18n sniff
     188    <!-- Allow the I18n functions file for issues identified by the I18n sniff
    189189         (such as calling the low-level translate() function). -->
    190190    <rule ref="WordPress.WP.I18n">
     
    208208    <!-- Exclude checking of line endings when reporting errors, but fix them when running phpcbf.
    209209         Git and SVN manage these pretty well cross-platform as "native".
    210          Whitelist configuration files. -->
     210         Allow configuration files. -->
    211211    <rule ref="Generic.Files.LineEndings">
    212212        <exclude-pattern>/wp-config\.php</exclude-pattern>
     
    228228    </rule>
    229229
    230     <!-- Whitelist test classes for select sniffs. -->
     230    <!-- Allow test classes for select sniffs. -->
    231231    <rule ref="WordPress.Files.FileName">
    232232        <properties>
Note: See TracChangeset for help on using the changeset viewer.