Skip to:
Content

BuddyPress.org

Changeset 3479


Ignore:
Timestamp:
11/23/2010 10:59:37 PM (12 years ago)
Author:
djpaul
Message:

Don't pass function arguments by reference, as deprecated in PHP 5.3. Fixes #2759.

Location:
trunk
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-templatetags.php

    r3465 r3479  
    259259    $activities_template = new BP_Activity_Template( $page, $per_page, $max, $include, $sort, $filter, $search_terms, $display_comments, $show_hidden, $exclude );
    260260
    261     return apply_filters( 'bp_has_activities', $activities_template->has_activities(), &$activities_template );
     261    return apply_filters( 'bp_has_activities', $activities_template->has_activities(), $activities_template );
    262262}
    263263
     
    589589        /* Add the delete link if the user has permission on this item */
    590590        if ( ( is_user_logged_in() && $activities_template->activity->user_id == $bp->loggedin_user->id ) || $bp->is_item_admin || $bp->loggedin_user->is_super_admin )
    591              $content .= apply_filters( 'bp_activity_delete_link', ' · ' . bp_get_activity_delete_link(), &$activities_template->activity );
     591             $content .= apply_filters( 'bp_activity_delete_link', ' · ' . bp_get_activity_delete_link(), $activities_template->activity );
    592592
    593593        return apply_filters( 'bp_insert_activity_meta', $content );
  • trunk/bp-blogs.php

    r3469 r3479  
    235235    extract( $params, EXTR_SKIP );
    236236
    237     return apply_filters( 'bp_blogs_get_blogs', BP_Blogs_Blog::get( $type, $per_page, $page, $user_id, $search_terms ), &$params );
     237    return apply_filters( 'bp_blogs_get_blogs', BP_Blogs_Blog::get( $type, $per_page, $page, $user_id, $search_terms ), $params );
    238238}
    239239
     
    299299        bp_blogs_record_activity( array(
    300300            'user_id'      => $recorded_blog->user_id,
    301             'action'       => apply_filters( 'bp_blogs_activity_created_blog_action', sprintf( __( '%s created the blog %s', 'buddypress'), bp_core_get_userlink( $recorded_blog->user_id ), '<a href="' . get_site_url( $recorded_blog->blog_id ) . '">' . esc_attr( $name ) . '</a>' ), &$recorded_blog, $name, $description ),
     301            'action'       => apply_filters( 'bp_blogs_activity_created_blog_action', sprintf( __( '%s created the blog %s', 'buddypress'), bp_core_get_userlink( $recorded_blog->user_id ), '<a href="' . get_site_url( $recorded_blog->blog_id ) . '">' . esc_attr( $name ) . '</a>' ), $recorded_blog, $name, $description ),
    302302            'primary_link' => apply_filters( 'bp_blogs_activity_created_blog_primary_link', get_site_url( $recorded_blog->blog_id ), $recorded_blog->blog_id ),
    303303            'type'         => 'new_blog',
  • trunk/bp-blogs/bp-blogs-templatetags.php

    r3448 r3479  
    152152
    153153    $blogs_template = new BP_Blogs_Template( $type, $page, $per_page, $max, $user_id, $search_terms );
    154     return apply_filters( 'bp_has_blogs', $blogs_template->has_blogs(), &$blogs_template );
     154    return apply_filters( 'bp_has_blogs', $blogs_template->has_blogs(), $blogs_template );
    155155}
    156156
  • trunk/bp-core.php

    r3466 r3479  
    575575    extract( $params, EXTR_SKIP );
    576576
    577     return apply_filters( 'bp_core_get_users', BP_Core_User::get_users( $type, $per_page, $page, $user_id, $include, $search_terms, $populate_extras, $exclude ), &$params );
     577    return apply_filters( 'bp_core_get_users', BP_Core_User::get_users( $type, $per_page, $page, $user_id, $include, $search_terms, $populate_extras, $exclude ), $params );
    578578}
    579579
  • trunk/bp-core/bp-core-templatetags.php

    r3473 r3479  
    167167
    168168    $members_template = new BP_Core_Members_Template( $type, $page, $per_page, $max, $user_id, $search_terms, $include, (bool)$populate_extras, $exclude );
    169     return apply_filters( 'bp_has_members', $members_template->has_members(), &$members_template );
     169    return apply_filters( 'bp_has_members', $members_template->has_members(), $members_template );
    170170}
    171171
  • trunk/bp-forums/bp-forums-templatetags.php

    r3473 r3479  
    219219
    220220    $forum_template = new BP_Forums_Template_Forum( $type, $forum_id, $user_id, $page, $per_page, $max, $no_stickies, $search_terms );
    221     return apply_filters( 'bp_has_topics', $forum_template->has_topics(), &$forum_template );
     221    return apply_filters( 'bp_has_topics', $forum_template->has_topics(), $forum_template );
    222222}
    223223
     
    847847    }
    848848
    849     return apply_filters( 'bp_has_topic_posts', $topic_template->has_posts(), &$topic_template );
     849    return apply_filters( 'bp_has_topic_posts', $topic_template->has_posts(), $topic_template );
    850850}
    851851
  • trunk/bp-friends.php

    r3466 r3479  
    396396            'user_id'           => $friendship->initiator_user_id,
    397397            'type'              => 'friendship_created',
    398             'action'            => apply_filters( 'friends_activity_friendship_accepted_action', sprintf( __( '%1$s and %2$s are now friends', 'buddypress' ), $initiator_link, $friend_link ), &$friendship ),
     398            'action'            => apply_filters( 'friends_activity_friendship_accepted_action', sprintf( __( '%1$s and %2$s are now friends', 'buddypress' ), $initiator_link, $friend_link ), $friendship ),
    399399            'item_id'           => $friendship_id,
    400400            'secondary_item_id' => $friendship->friend_user_id
     
    405405            'user_id'           => $friendship->friend_user_id,
    406406            'type'              => 'friendship_created',
    407             'action'            => apply_filters( 'friends_activity_friendship_accepted_action', sprintf( __( '%1$s and %2$s are now friends', 'buddypress' ), $friend_link, $initiator_link ), &$friendship ),
     407            'action'            => apply_filters( 'friends_activity_friendship_accepted_action', sprintf( __( '%1$s and %2$s are now friends', 'buddypress' ), $friend_link, $initiator_link ), $friendship ),
    408408            'item_id'           => $friendship_id,
    409409            'secondary_item_id' => $friendship->initiator_user_id,
  • trunk/bp-groups/bp-groups-templatetags.php

    r3472 r3479  
    188188
    189189    $groups_template = new BP_Groups_Template( (int)$user_id, $type, (int)$page, (int)$per_page, (int)$max, $slug, $search_terms, $include, (bool)$populate_extras, $exclude );
    190     return apply_filters( 'bp_has_groups', $groups_template->has_groups(), &$groups_template );
     190    return apply_filters( 'bp_has_groups', $groups_template->has_groups(), $groups_template );
    191191}
    192192
     
    13831383
    13841384    $members_template = new BP_Groups_Group_Members_Template( $group_id, $per_page, $max, (int)$exclude_admins_mods, (int)$exclude_banned, $exclude );
    1385     return apply_filters( 'bp_group_has_members', $members_template->has_members(), &$members_template );
     1385    return apply_filters( 'bp_group_has_members', $members_template->has_members(), $members_template );
    13861386}
    13871387
     
    20632063
    20642064    $requests_template = new BP_Groups_Membership_Requests_Template( $group_id, $per_page, $max );
    2065     return apply_filters( 'bp_group_has_membership_requests', $requests_template->has_requests(), &$requests_template );
     2065    return apply_filters( 'bp_group_has_membership_requests', $requests_template->has_requests(), $requests_template );
    20662066}
    20672067
     
    22172217
    22182218    $invites_template = new BP_Groups_Invite_Template( $user_id, $group_id );
    2219     return apply_filters( 'bp_group_has_invites', $invites_template->has_invites(), &$invites_template );
     2219    return apply_filters( 'bp_group_has_invites', $invites_template->has_invites(), $invites_template );
    22202220}
    22212221
  • trunk/bp-messages/bp-messages-templatetags.php

    r3384 r3479  
    177177    }
    178178
    179     return apply_filters( 'bp_has_message_threads', $messages_template->has_threads(), &$messages_template );
     179    return apply_filters( 'bp_has_message_threads', $messages_template->has_threads(), $messages_template );
    180180}
    181181
  • trunk/bp-xprofile/bp-xprofile-templatetags.php

    r3391 r3479  
    159159
    160160    $profile_template = new BP_XProfile_Data_Template( $user_id, $profile_group_id, $hide_empty_groups, $fetch_fields, $fetch_field_data, $exclude_groups, $exclude_fields );
    161     return apply_filters( 'bp_has_profile', $profile_template->has_groups(), &$profile_template );
     161    return apply_filters( 'bp_has_profile', $profile_template->has_groups(), $profile_template );
    162162}
    163163
Note: See TracChangeset for help on using the changeset viewer.