Skip to content

Commit 6048dd6

Browse files
Docs: Use more inclusive language in PHPCS configuration files.
Follow-up to [42346], [43348], [45455], [46290], [46820], [48121], [48477]. See #55646, #55647. git-svn-id: https://develop.svn.wordpress.org/trunk@53800 602fd350-edb4-49c9-b593-d223f7449a82
1 parent da50ef9 commit 6048dd6

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

phpcompat.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
<exclude-pattern>/random_compat/random_bytes_mcrypt\.php$</exclude-pattern>
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>
8888
</rule>

phpcs.xml.dist

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,13 +163,13 @@
163163
<!-- Themes except the twenty* themes. -->
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>
169169
<exclude-pattern>/tests/phpunit/tests/db/charset\.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">
175175
<exclude-pattern>/tests/phpunit/tests/db\.php</exclude-pattern>
@@ -185,7 +185,7 @@
185185
<exclude-pattern>/tests/phpunit/tests/multisite/site\.php</exclude-pattern>
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">
191191
<exclude-pattern>/src/wp-includes/l10n\.php</exclude-pattern>
@@ -207,7 +207,7 @@
207207

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>
213213
<exclude-pattern>/wp-config-sample\.php</exclude-pattern>
@@ -227,7 +227,7 @@
227227
<exclude-pattern>/src/wp-content/themes/twentyfourteen/taxonomy-post_format\.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>
233233
<property name="custom_test_class_whitelist" type="array">

0 commit comments

Comments
 (0)