Changeset 1351 for trunk/bp-activity/bp-activity-classes.php
- Timestamp:
- 04/19/2009 12:21:53 PM (17 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
r1338 r1351 45 45 function save() { 46 46 global $wpdb, $bp, $current_user; 47 48 do_action( 'bp_activity_before_save', $this ); 47 49 48 50 if ( !$this->item_id || !$this->user_id || $this->is_private || !$this->component_name ) … … 70 72 $sitewide_cached = $wpdb->query( $wpdb->prepare( "INSERT INTO {$bp->activity->table_name_sitewide} ( user_id, item_id, secondary_item_id, content, primary_link, component_name, component_action, date_cached, date_recorded ) VALUES ( %d, %d, %d, %s, %s, %s, %s, FROM_UNIXTIME(%d), FROM_UNIXTIME(%d) )", $this->user_id, $this->item_id, $this->secondary_item_id, $activity_content['content'], $activity_content['primary_link'], $this->component_name, $this->component_action, time(), $this->date_recorded ) ); 71 73 72 if ( $activity && $activity_cached ) 74 if ( $activity && $activity_cached ) { 75 do_action( 'bp_activity_after_save', $this ); 73 76 return true; 77 } 74 78 75 79 return false;
Note: See TracChangeset
for help on using the changeset viewer.