Ticket #5424: 5424.diff
File 5424.diff, 1.6 KB (added by , 11 years ago) |
---|
-
bp-core/bp-core-classes.php
1411 1411 'user_id' => $user_id, 1412 1412 'component' => buddypress()->members->id, 1413 1413 'type' => 'last_activity', 1414 'action' => '', 1415 'content' => '', 1416 'primary_link' => '', 1417 'item_id' => 0, 1414 1418 'date_recorded' => $time, 1415 1419 ), 1416 1420 … … 1420 1424 '%s', 1421 1425 '%s', 1422 1426 '%s', 1427 '%s', 1428 '%s', 1429 '%d', 1430 '%s', 1423 1431 ) 1424 1432 ); 1425 1433 } -
bp-core/bp-core-update.php
350 350 /** Migrate 'last_activity' data *************************************/ 351 351 352 352 // The "NOT IN" clause prevents duplicates 353 $sql = "INSERT INTO {$bp->members->table_name_last_activity} (`user_id`, `component`, `type`, ` date_recorded` ) (354 SELECT user_id, '{$bp->members->id}' as component, 'last_activity' as type, meta_value AS date_recorded353 $sql = "INSERT INTO {$bp->members->table_name_last_activity} (`user_id`, `component`, `type`, `action`, `content`, `primary_link`, `item_id`, `date_recorded` ) ( 354 SELECT user_id, '{$bp->members->id}' as component, 'last_activity' as type, '' as action, '' as content, '' as primary_link, 0 as item_id, meta_value AS date_recorded 355 355 FROM {$wpdb->usermeta} 356 356 WHERE 357 357 meta_key = 'last_activity'