Changeset 11256 for trunk/src/bp-blogs/bp-blogs-activity.php
- Timestamp:
- 11/28/2016 10:33:55 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-blogs/bp-blogs-activity.php
r11237 r11256 548 548 549 549 // Use comments_open(). 550 remove_filter( 'comments_open', 'bp_comments_open', 10 , 2);550 remove_filter( 'comments_open', 'bp_comments_open', 10 ); 551 551 $open = comments_open( $activity->secondary_item_id ); 552 552 add_filter( 'comments_open', 'bp_comments_open', 10, 2 ); … … 807 807 808 808 // Prevent separate activity entry being made. 809 remove_action( 'comment_post', 'bp_activity_post_type_comment', 10 , 2);809 remove_action( 'comment_post', 'bp_activity_post_type_comment', 10 ); 810 810 811 811 // Handle multisite. … … 971 971 972 972 // No need to edit the activity, as it's the activity who's updating the comment 973 remove_action( 'transition_comment_status', 'bp_activity_transition_post_type_comment_status', 10, 3);974 remove_action( 'bp_activity_post_type_comment', 'bp_blogs_comment_sync_activity_comment', 10, 4);973 remove_action( 'transition_comment_status', 'bp_activity_transition_post_type_comment_status', 10 ); 974 remove_action( 'bp_activity_post_type_comment', 'bp_blogs_comment_sync_activity_comment', 10 ); 975 975 976 976 if ( 1 === $activity->is_spam && 'spam' !== $post_comment_status ) {
Note: See TracChangeset
for help on using the changeset viewer.