Changeset 3903 for trunk/bp-friends/bp-friends-classes.php
- Timestamp:
- 01/24/2011 01:17:29 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-friends/bp-friends-classes.php
r3790 r3903 29 29 if ( $friendship = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM {$bp->friends->table_name} WHERE id = %d", $this->id ) ) ) { 30 30 $this->initiator_user_id = $friendship->initiator_user_id; 31 $this->friend_user_id = $friendship->friend_user_id;32 $this->is_confirmed = $friendship->is_confirmed;33 $this->is_limited = $friendship->is_limited;34 $this->date_created = $friendship->date_created;31 $this->friend_user_id = $friendship->friend_user_id; 32 $this->is_confirmed = $friendship->is_confirmed; 33 $this->is_limited = $friendship->is_limited; 34 $this->date_created = $friendship->date_created; 35 35 } 36 36 … … 52 52 53 53 $this->initiator_user_id = apply_filters( 'friends_friendship_initiator_user_id_before_save', $this->initiator_user_id, $this->id ); 54 $this->friend_user_id = apply_filters( 'friends_friendship_friend_user_id_before_save', $this->friend_user_id,$this->id );55 $this->is_confirmed = apply_filters( 'friends_friendship_is_confirmed_before_save', $this->is_confirmed,$this->id );56 $this->is_limited = apply_filters( 'friends_friendship_is_limited_before_save', $this->is_limited,$this->id );57 $this->date_created = apply_filters( 'friends_friendship_date_created_before_save', $this->date_created,$this->id );58 59 do_action ( 'friends_friendship_before_save', $this);54 $this->friend_user_id = apply_filters( 'friends_friendship_friend_user_id_before_save', $this->friend_user_id, $this->id ); 55 $this->is_confirmed = apply_filters( 'friends_friendship_is_confirmed_before_save', $this->is_confirmed, $this->id ); 56 $this->is_limited = apply_filters( 'friends_friendship_is_limited_before_save', $this->is_limited, $this->id ); 57 $this->date_created = apply_filters( 'friends_friendship_date_created_before_save', $this->date_created, $this->id ); 58 59 do_action_ref_array( 'friends_friendship_before_save', array( &$this ) ); 60 60 61 61 if ( $this->id ) { … … 68 68 } 69 69 70 do_action( 'friends_friendship_after_save', $this);70 do_action( 'friends_friendship_after_save', array( &$this ) ); 71 71 72 72 return $result;
Note: See TracChangeset
for help on using the changeset viewer.