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/schema.php

    r47808 r48121  
    447447        'template'                        => $template,
    448448        'stylesheet'                      => $stylesheet,
    449         'comment_whitelist'               => 1,
    450         'blacklist_keys'                  => '',
    451449        'comment_registration'            => 0,
    452450        'html_type'                       => 'text/html',
     
    533531        // 5.3.0
    534532        'admin_email_lifespan'            => ( time() + 6 * MONTH_IN_SECONDS ),
     533
     534        // 5.5.0
     535        'blocklist_keys'                  => '',
     536        'comment_previously_approved'     => 1,
    535537    );
    536538
     
    551553
    552554    // Set autoload to no for these options.
    553     $fat_options = array( 'moderation_keys', 'recently_edited', 'blacklist_keys', 'uninstall_plugins' );
     555    $fat_options = array( 'moderation_keys', 'recently_edited', 'blocklist_keys', 'uninstall_plugins' );
    554556
    555557    $keys             = "'" . implode( "', '", array_keys( $options ) ) . "'";
     
    11411143    }
    11421144
    1143     // If WP_DEFAULT_THEME doesn't exist, also whitelist the latest core default theme.
     1145    // If WP_DEFAULT_THEME doesn't exist, also include the latest core default theme.
    11441146    if ( ! wp_get_theme( WP_DEFAULT_THEME )->exists() ) {
    11451147        $core_default = WP_Theme::get_core_default_theme();
Note: See TracChangeset for help on using the changeset viewer.