Changeset 13149 for trunk/src/bp-activity/bp-activity-functions.php
- Timestamp:
- 11/14/2021 03:16:38 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-functions.php
r13146 r13149 3596 3596 wp_cache_delete( 'bp_activity_sitewide_front', 'bp' ); 3597 3597 3598 if ( 'activity_comment' === $activity->type ) { 3599 $activity_id = $activity->item_id; 3600 } else { 3601 $activity_id = $activity->id; 3602 } 3603 3598 3604 // Clear the activity comment cache for this activity item. 3599 wp_cache_delete( $activity ->id, 'bp_activity_comments' );3605 wp_cache_delete( $activity_id, 'bp_activity_comments' ); 3600 3606 3601 3607 // If Akismet is active, and this was a manual spam/ham request, stop Akismet checking the activity. … … 3643 3649 wp_cache_delete( 'bp_activity_sitewide_front', 'bp' ); 3644 3650 3651 if ( 'activity_comment' === $activity->type ) { 3652 $activity_id = $activity->item_id; 3653 } else { 3654 $activity_id = $activity->id; 3655 } 3656 3645 3657 // Clear the activity comment cache for this activity item. 3646 wp_cache_delete( $activity ->id, 'bp_activity_comments' );3658 wp_cache_delete( $activity_id, 'bp_activity_comments' ); 3647 3659 3648 3660 // If Akismet is active, and this was a manual spam/ham request, stop Akismet checking the activity.
Note: See TracChangeset
for help on using the changeset viewer.