Changeset 2331 for trunk/bp-activity/bp-activity-classes.php
- Timestamp:
- 01/18/2010 11:50:33 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/bp-activity/bp-activity-classes.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-classes.php
r2273 r2331 48 48 return false; 49 49 50 /***51 * Before v1.1 of BuddyPress, activity content was calculated at a later point. This is no longer the52 * case, to to be backwards compatible we need to fetch content here to continue.53 */54 if ( empty( $this->content ) || !$this->content ) {55 if ( function_exists( $bp->{$this->component_name}->format_activity_function ) ) {56 if ( !$fetched_content = call_user_func( $bp->{$this->component_name}->format_activity_function, $this->item_id, $this->user_id, $this->component_action, $this->secondary_item_id, $this->for_secondary_user ) )57 return false;58 59 $this->content = $fetched_content['content'];60 $this->primary_link = $fetched_content['primary_link'];61 }62 }63 64 50 if ( !$this->primary_link ) 65 51 $this->primary_link = $bp->loggedin_user->domain; … … 97 83 $activity_ids = $wpdb->get_col( $wpdb->prepare( "SELECT id FROM {$bp->activity->table_name} WHERE item_id = %s {$secondary_sql} AND component_name = %s {$component_action_sql} {$user_sql}", $item_id, $component_name ) ); 98 84 85 error_log( $wpdb->prepare( "DELETE FROM {$bp->activity->table_name} WHERE item_id = %s {$secondary_sql} AND component_name = %s {$component_action_sql} {$user_sql}", $item_id, $component_name ) ); 86 99 87 if ( !$wpdb->query( $wpdb->prepare( "DELETE FROM {$bp->activity->table_name} WHERE item_id = %s {$secondary_sql} AND component_name = %s {$component_action_sql} {$user_sql}", $item_id, $component_name ) ) ) 100 88 return false;
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)