Changeset 12694 for trunk/src/bp-activity/bp-activity-functions.php
- Timestamp:
- 07/29/2020 06:44:23 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-functions.php
r12605 r12694 848 848 * The "context" is the current view type, corresponding roughly to the 849 849 * current component. Use this context to determine which activity actions 850 * should be whitelisted forthe filter dropdown.850 * should be permitted in the filter dropdown. 851 851 * 852 852 * @since 2.8.0 … … 4144 4144 } 4145 4145 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. 4147 4147 $post_type_comment_action = $activity_comment_object->action_id; 4148 4148 $comment_akismet_history = function ( $activity_types ) use ( $post_type_comment_action ) { … … 4162 4162 add_action( 'bp_activity_before_save', 'bp_blogs_sync_activity_edit_to_post_comment', 20 ); 4163 4163 4164 // Remove the "new_blog_comment" activity type whitelistso we don't break anything.4164 // Remove the dynamic permitting of the "new_blog_comment" activity type so we don't break anything. 4165 4165 remove_filter( 'bp_akismet_get_activity_types', $comment_akismet_history ); 4166 4166 }
Note: See TracChangeset
for help on using the changeset viewer.