Changeset 9326 for trunk/src/bp-core/bp-core-update.php
- Timestamp:
- 01/09/2015 08:56:45 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-core/bp-core-update.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-update.php
r9273 r9326 400 400 * - Add messages meta table 401 401 * - Update the component field of the 'new members' activity type 402 * - Clean up hidden friendship activities 402 403 * 403 404 * @since BuddyPress (2.2.0) … … 410 411 if ( bp_is_active( 'activity' ) ) { 411 412 bp_migrate_new_member_activity_component(); 413 414 if ( bp_is_active( 'friends' ) ) { 415 bp_cleanup_friendship_activities(); 416 } 412 417 } 413 418 } … … 450 455 451 456 /** 457 * Remove all hidden friendship activities 458 * 459 * @since BuddyPress (2.2.0) 460 * 461 * @uses bp_activity_delete() to delete the corresponding friendship activities 462 */ 463 function bp_cleanup_friendship_activities() { 464 bp_activity_delete( array( 465 'component' => buddypress()->friends->id, 466 'type' => 'friendship_created', 467 'hide_sitewide' => true, 468 ) ); 469 } 470 471 /** 452 472 * Redirect user to BP's What's New page on first page load after activation. 453 473 *
Note: See TracChangeset
for help on using the changeset viewer.