Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/29/2020 06:44:23 PM (4 years ago)
Author:
boonebgorges
Message:

Remove terms blacklist and whitelist in inline comments and local variables.

The change is in order to promote clearer and more inclusive language.

See #8339.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/bp-xprofile-functions.php

    r12605 r12694  
    208208 *     @type int    $field_group_id    ID of the associated field group.
    209209 *     @type int    $parent_id         Optional. ID of the parent field.
    210  *     @type string $type              Field type. Checked against a field_types whitelist.
     210 *     @type string $type              Field type. Checked against a list of allowed field_types.
    211211 *     @type string $name              Name of the new field.
    212212 *     @type string $description       Optional. Descriptive text for the field.
     
    453453    }
    454454
    455     // For certain fields, only certain parameters are acceptable, so add them to the whitelist.
     455    // For certain fields, only certain parameters are acceptable, so add them to the list of allowed values.
    456456    if ( $field_type_obj->supports_options ) {
    457457        $field_type_obj->set_whitelist_values( wp_list_pluck( $field->get_children(), 'name' ) );
     
    488488    }
    489489
    490     // Check against a whitelist.
     490    // Check against a list of registered visibility levels.
    491491    $allowed_values = bp_xprofile_get_visibility_levels();
    492492    if ( !array_key_exists( $visibility_level, $allowed_values ) ) {
Note: See TracChangeset for help on using the changeset viewer.