Changeset 9273 for trunk/src/bp-core/bp-core-update.php
- Timestamp:
- 12/24/2014 04:35:52 AM (12 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-core/bp-core-update.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-update.php
r9182 r9273 399 399 * 400 400 * - Add messages meta table 401 * - Update the component field of the 'new members' activity type 401 402 * 402 403 * @since BuddyPress (2.2.0) … … 406 407 bp_core_install_private_messaging(); 407 408 } 409 410 if ( bp_is_active( 'activity' ) ) { 411 bp_migrate_new_member_activity_component(); 412 } 413 } 414 415 /** 416 * Updates the component field for new_members type. 417 * 418 * @since BuddyPress (2.2.0) 419 * 420 * @global $wpdb 421 * @uses buddypress() 422 * 423 */ 424 function bp_migrate_new_member_activity_component() { 425 global $wpdb; 426 $bp = buddypress(); 427 428 // Update the component for the new_member type 429 $wpdb->update( 430 // Activity table 431 $bp->members->table_name_last_activity, 432 array( 433 'component' => $bp->members->id, 434 ), 435 array( 436 'component' => 'xprofile', 437 'type' => 'new_member', 438 ), 439 // Data sanitization format 440 array( 441 '%s', 442 ), 443 // WHERE sanitization format 444 array( 445 '%s', 446 '%s' 447 ) 448 ); 408 449 } 409 450
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)