Make WordPress Core


Ignore:
Timestamp:
06/22/2020 05:24:34 PM (4 years ago)
Author:
desrosj
Message:

General: Remove “whitelist” and “blacklist” in favor of more clear and inclusive language.

“The WordPress open source community cares about diversity. We strive to maintain a welcoming environment where everyone can feel included.”

With this commit, all occurrences of “whitelist” and “blacklist” (with the single exception of the $new_whitelist_options global variable) are removed. A new ticket has been opened to explore renaming the $new_whitelist_options variable (#50434).

Changing to more specific names or rewording sentences containing these terms not only makes the code more inclusive, but also helps provide clarity. These terms are often ambiguous. What is being blocked or allowed is not always immediately clear. This can make it more difficult for non-native English speakers to read through the codebase.

Words matter. If one contributor feels more welcome because these terms are removed, this was worth the effort.

Props strangerstudios, jorbin, desrosj, joemcgill, timothyblynjacobs, ocean90, ayeshrajans, davidbaumwald, earnjam.
See #48900, #50434.
Fixes #50413.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-site-health.php

    r48102 r48121  
    17771777     * Test if HTTP requests are blocked.
    17781778     *
    1779      * It's possible to block all outgoing communication (with the possibility of whitelisting hosts) via the
    1780      * HTTP API. This may create problems for users as many features are running as services these days.
     1779     * It's possible to block all outgoing communication (with the possibility of allowing certain
     1780     * hosts) via the HTTP API. This may create problems for users as many features are running as
     1781     * services these days.
    17811782     *
    17821783     * @since 5.2.0
     
    18341835                '<p>%s</p>',
    18351836                sprintf(
    1836                     /* translators: 1: Name of the constant used. 2: List of hostnames whitelisted. */
    1837                     __( 'HTTP requests have been blocked by the %1$s constant, with some hosts whitelisted: %2$s.' ),
     1837                    /* translators: 1: Name of the constant used. 2: List of allowed hostnames. */
     1838                    __( 'HTTP requests have been blocked by the %1$s constant, with some allowed hosts: %2$s.' ),
    18381839                    '<code>WP_HTTP_BLOCK_EXTERNAL</code>',
    18391840                    implode( ',', $hosts )
Note: See TracChangeset for help on using the changeset viewer.