Changeset 1245
- Timestamp:
- 03/19/2009 09:26:24 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core.php
r1238 r1245 1077 1077 return $wpdb->get_var( $wpdb->prepare( "SELECT path FROM {$wpdb->base_prefix}site WHERE id = 1") ); 1078 1078 } 1079 1080 1079 1081 1080 function bp_core_redirect( $location, $status = 302 ) { … … 1361 1360 /* Remove usermeta */ 1362 1361 delete_usermeta( $user_id, 'last_activity' ); 1362 1363 /* Flush the cache to remove the user from all cached objects */ 1363 1364 wp_cache_flush(); 1364 1365 } -
trunk/bp-core/bp-core-classes.php
r1138 r1245 309 309 } 310 310 311 function delete_from_user_by_type( $user_id, $component_name, $component_action ) { 312 global $wpdb, $bp; 313 314 return $wpdb->query( $wpdb->prepare( "DELETE FROM {$bp->core->table_name_notifications} WHERE item_id = %d AND component_name = %s AND component_action = %s", $user_id, $component_name, $component_action ) ); 315 } 316 311 317 function delete_all_by_type( $item_id, $component_name, $component_action, $secondary_item_id ) { 312 318 global $wpdb, $bp; -
trunk/bp-core/bp-core-notifications.php
r1082 r1245 85 85 } 86 86 87 function bp_core_delete_notifications_from_user( $user_id, $component_name, $component_action ) { 88 return BP_Core_Notification::delete_from_user_by_type( $user_id, $component_name, $component_action ); 89 } 90 87 91 function bp_core_check_notification_access( $user_id, $notification_id ) { 88 92 if ( !BP_Core_Notification::check_access( $user_id, $notification_id ) ) -
trunk/bp-friends.php
r1238 r1245 613 613 /* Remove usermeta */ 614 614 delete_usermeta( $user_id, 'total_friend_count' ); 615 616 /* Remove friendship requests FROM user */ 617 bp_core_delete_notifications_from_user( $user_id, $bp->friends->slug, 'friendship_request' ); 615 618 616 619 do_action( 'friends_remove_data', $user_id ); -
trunk/bp-xprofile.php
r1238 r1245 852 852 $field->user_id = $user_id; 853 853 $field->value = $value; 854 854 855 855 return $field->save(); 856 856 }
Note: See TracChangeset
for help on using the changeset viewer.