Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/29/2020 06:44:23 PM (5 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-activity/bp-activity-functions.php

    r12605 r12694  
    848848 * The "context" is the current view type, corresponding roughly to the
    849849 * current component. Use this context to determine which activity actions
    850  * should be whitelisted for the filter dropdown.
     850 * should be permitted in the filter dropdown.
    851851 *
    852852 * @since 2.8.0
     
    41444144    }
    41454145
    4146     // Add "new_post_type_comment" to the whitelisted activity types, so that the activity's Akismet history is generated.
     4146    // Add "new_post_type_comment" to the allowed activity types, so that the activity's Akismet history is generated.
    41474147    $post_type_comment_action = $activity_comment_object->action_id;
    41484148    $comment_akismet_history = function ( $activity_types ) use ( $post_type_comment_action ) {
     
    41624162    add_action( 'bp_activity_before_save', 'bp_blogs_sync_activity_edit_to_post_comment', 20 );
    41634163
    4164     // Remove the "new_blog_comment" activity type whitelist so we don't break anything.
     4164    // Remove the dynamic permitting of the "new_blog_comment" activity type so we don't break anything.
    41654165    remove_filter( 'bp_akismet_get_activity_types', $comment_akismet_history );
    41664166}
Note: See TracChangeset for help on using the changeset viewer.