Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/24/2011 01:17:29 PM (14 years ago)
Author:
johnjamesjacoby
Message:

Full by-ref audit of all components. Sacrifice E_DEPRECATED notices in PHP 5.3 for PHP4.x compatibility.

See r3893, r3892, r3891, r3873, r3871, r3867, r3865, r3864, r3863, r3854.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-friends/bp-friends-classes.php

    r3790 r3903  
    2929        if ( $friendship = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM {$bp->friends->table_name} WHERE id = %d", $this->id ) ) ) {
    3030            $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;
    3535        }
    3636
     
    5252
    5353        $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 ) );
    6060
    6161        if ( $this->id ) {
     
    6868        }
    6969
    70         do_action( 'friends_friendship_after_save', $this );
     70        do_action( 'friends_friendship_after_save', array( &$this ) );
    7171
    7272        return $result;
Note: See TracChangeset for help on using the changeset viewer.