<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[BuddyPress] [3479] trunk: Don't pass function arguments by reference,
as deprecated in PHP 5.3.</title>
</head>
<body>
<div id="msg">
<dl>
<dt>Revision</dt> <dd>3479</dd>
<dt>Author</dt> <dd>djpaul</dd>
<dt>Date</dt> <dd>2010-11-23 22:59:37 +0000 (Tue, 23 Nov 2010)</dd>
</dl>
<h3>Log Message</h3>
<pre>Don't pass function arguments by reference, as deprecated in PHP 5.3. Fixes #2759.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkbpactivitybpactivitytemplatetagsphp">trunk/bp-activity/bp-activity-templatetags.php</a></li>
<li><a href="#trunkbpblogsbpblogstemplatetagsphp">trunk/bp-blogs/bp-blogs-templatetags.php</a></li>
<li><a href="#trunkbpblogsphp">trunk/bp-blogs.php</a></li>
<li><a href="#trunkbpcorebpcoretemplatetagsphp">trunk/bp-core/bp-core-templatetags.php</a></li>
<li><a href="#trunkbpcorephp">trunk/bp-core.php</a></li>
<li><a href="#trunkbpforumsbpforumstemplatetagsphp">trunk/bp-forums/bp-forums-templatetags.php</a></li>
<li><a href="#trunkbpfriendsphp">trunk/bp-friends.php</a></li>
<li><a href="#trunkbpgroupsbpgroupstemplatetagsphp">trunk/bp-groups/bp-groups-templatetags.php</a></li>
<li><a href="#trunkbpmessagesbpmessagestemplatetagsphp">trunk/bp-messages/bp-messages-templatetags.php</a></li>
<li><a href="#trunkbpxprofilebpxprofiletemplatetagsphp">trunk/bp-xprofile/bp-xprofile-templatetags.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkbpactivitybpactivitytemplatetagsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-activity/bp-activity-templatetags.php (3478 => 3479)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-activity/bp-activity-templatetags.php        2010-11-23 13:13:37 UTC (rev 3478)
+++ trunk/bp-activity/bp-activity-templatetags.php        2010-11-23 22:59:37 UTC (rev 3479)
</span><span class="lines">@@ -258,7 +258,7 @@
</span><span class="cx">
</span><span class="cx">         $activities_template = new BP_Activity_Template( $page, $per_page, $max, $include, $sort, $filter, $search_terms, $display_comments, $show_hidden, $exclude );
</span><span class="cx">
</span><del>-        return apply_filters( 'bp_has_activities', $activities_template->has_activities(), &$activities_template );
</del><ins>+        return apply_filters( 'bp_has_activities', $activities_template->has_activities(), $activities_template );
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> function bp_activities() {
</span><span class="lines">@@ -588,7 +588,7 @@
</span><span class="cx">
</span><span class="cx">                 /* Add the delete link if the user has permission on this item */
</span><span class="cx">                 if ( ( is_user_logged_in() && $activities_template->activity->user_id == $bp->loggedin_user->id ) || $bp->is_item_admin || $bp->loggedin_user->is_super_admin )
</span><del>-                         $content .= apply_filters( 'bp_activity_delete_link', ' &middot; ' . bp_get_activity_delete_link(), &$activities_template->activity );
</del><ins>+                         $content .= apply_filters( 'bp_activity_delete_link', ' &middot; ' . bp_get_activity_delete_link(), $activities_template->activity );
</ins><span class="cx">
</span><span class="cx">                 return apply_filters( 'bp_insert_activity_meta', $content );
</span><span class="cx">         }
</span></span></pre></div>
<a id="trunkbpblogsbpblogstemplatetagsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-blogs/bp-blogs-templatetags.php (3478 => 3479)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-blogs/bp-blogs-templatetags.php        2010-11-23 13:13:37 UTC (rev 3478)
+++ trunk/bp-blogs/bp-blogs-templatetags.php        2010-11-23 22:59:37 UTC (rev 3479)
</span><span class="lines">@@ -151,7 +151,7 @@
</span><span class="cx">         }
</span><span class="cx">
</span><span class="cx">         $blogs_template = new BP_Blogs_Template( $type, $page, $per_page, $max, $user_id, $search_terms );
</span><del>-        return apply_filters( 'bp_has_blogs', $blogs_template->has_blogs(), &$blogs_template );
</del><ins>+        return apply_filters( 'bp_has_blogs', $blogs_template->has_blogs(), $blogs_template );
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> function bp_blogs() {
</span></span></pre></div>
<a id="trunkbpblogsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-blogs.php (3478 => 3479)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-blogs.php        2010-11-23 13:13:37 UTC (rev 3478)
+++ trunk/bp-blogs.php        2010-11-23 22:59:37 UTC (rev 3479)
</span><span class="lines">@@ -234,7 +234,7 @@
</span><span class="cx">         $params = wp_parse_args( $args, $defaults );
</span><span class="cx">         extract( $params, EXTR_SKIP );
</span><span class="cx">
</span><del>-        return apply_filters( 'bp_blogs_get_blogs', BP_Blogs_Blog::get( $type, $per_page, $page, $user_id, $search_terms ), &$params );
</del><ins>+        return apply_filters( 'bp_blogs_get_blogs', BP_Blogs_Blog::get( $type, $per_page, $page, $user_id, $search_terms ), $params );
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> function bp_blogs_record_existing_blogs() {
</span><span class="lines">@@ -298,7 +298,7 @@
</span><span class="cx">                 // Record this in activity streams
</span><span class="cx">                 bp_blogs_record_activity( array(
</span><span class="cx">                         'user_id' => $recorded_blog->user_id,
</span><del>-                        '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 ),
</del><ins>+                        '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 ),
</ins><span class="cx">                         'primary_link' => apply_filters( 'bp_blogs_activity_created_blog_primary_link', get_site_url( $recorded_blog->blog_id ), $recorded_blog->blog_id ),
</span><span class="cx">                         'type' => 'new_blog',
</span><span class="cx">                         'item_id' => $recorded_blog->blog_id
</span></span></pre></div>
<a id="trunkbpcorebpcoretemplatetagsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-core/bp-core-templatetags.php (3478 => 3479)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-core/bp-core-templatetags.php        2010-11-23 13:13:37 UTC (rev 3478)
+++ trunk/bp-core/bp-core-templatetags.php        2010-11-23 22:59:37 UTC (rev 3479)
</span><span class="lines">@@ -166,7 +166,7 @@
</span><span class="cx">                 return false;
</span><span class="cx">
</span><span class="cx">         $members_template = new BP_Core_Members_Template( $type, $page, $per_page, $max, $user_id, $search_terms, $include, (bool)$populate_extras, $exclude );
</span><del>-        return apply_filters( 'bp_has_members', $members_template->has_members(), &$members_template );
</del><ins>+        return apply_filters( 'bp_has_members', $members_template->has_members(), $members_template );
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> function bp_the_member() {
</span></span></pre></div>
<a id="trunkbpcorephp"></a>
<div class="modfile"><h4>Modified: trunk/bp-core.php (3478 => 3479)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-core.php        2010-11-23 13:13:37 UTC (rev 3478)
+++ trunk/bp-core.php        2010-11-23 22:59:37 UTC (rev 3479)
</span><span class="lines">@@ -574,7 +574,7 @@
</span><span class="cx">         $params = wp_parse_args( $args, $defaults );
</span><span class="cx">         extract( $params, EXTR_SKIP );
</span><span class="cx">
</span><del>-        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 );
</del><ins>+        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 );
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> /**
</span></span></pre></div>
<a id="trunkbpforumsbpforumstemplatetagsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-forums/bp-forums-templatetags.php (3478 => 3479)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-forums/bp-forums-templatetags.php        2010-11-23 13:13:37 UTC (rev 3478)
+++ trunk/bp-forums/bp-forums-templatetags.php        2010-11-23 22:59:37 UTC (rev 3479)
</span><span class="lines">@@ -218,7 +218,7 @@
</span><span class="cx">         }
</span><span class="cx">
</span><span class="cx">         $forum_template = new BP_Forums_Template_Forum( $type, $forum_id, $user_id, $page, $per_page, $max, $no_stickies, $search_terms );
</span><del>-        return apply_filters( 'bp_has_topics', $forum_template->has_topics(), &$forum_template );
</del><ins>+        return apply_filters( 'bp_has_topics', $forum_template->has_topics(), $forum_template );
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> function bp_forum_topics() {
</span><span class="lines">@@ -846,7 +846,7 @@
</span><span class="cx">                 return false;
</span><span class="cx">         }
</span><span class="cx">
</span><del>-        return apply_filters( 'bp_has_topic_posts', $topic_template->has_posts(), &$topic_template );
</del><ins>+        return apply_filters( 'bp_has_topic_posts', $topic_template->has_posts(), $topic_template );
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> function bp_forum_topic_posts() {
</span></span></pre></div>
<a id="trunkbpfriendsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-friends.php (3478 => 3479)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-friends.php        2010-11-23 13:13:37 UTC (rev 3478)
+++ trunk/bp-friends.php        2010-11-23 22:59:37 UTC (rev 3479)
</span><span class="lines">@@ -395,7 +395,7 @@
</span><span class="cx">                 friends_record_activity( array(
</span><span class="cx">                         'user_id' => $friendship->initiator_user_id,
</span><span class="cx">                         'type' => 'friendship_created',
</span><del>-                        'action' => apply_filters( 'friends_activity_friendship_accepted_action', sprintf( __( '%1$s and %2$s are now friends', 'buddypress' ), $initiator_link, $friend_link ), &$friendship ),
</del><ins>+                        'action' => apply_filters( 'friends_activity_friendship_accepted_action', sprintf( __( '%1$s and %2$s are now friends', 'buddypress' ), $initiator_link, $friend_link ), $friendship ),
</ins><span class="cx">                         'item_id' => $friendship_id,
</span><span class="cx">                         'secondary_item_id' => $friendship->friend_user_id
</span><span class="cx">                 ) );
</span><span class="lines">@@ -404,7 +404,7 @@
</span><span class="cx">                 friends_record_activity( array(
</span><span class="cx">                         'user_id' => $friendship->friend_user_id,
</span><span class="cx">                         'type' => 'friendship_created',
</span><del>-                        'action' => apply_filters( 'friends_activity_friendship_accepted_action', sprintf( __( '%1$s and %2$s are now friends', 'buddypress' ), $friend_link, $initiator_link ), &$friendship ),
</del><ins>+                        'action' => apply_filters( 'friends_activity_friendship_accepted_action', sprintf( __( '%1$s and %2$s are now friends', 'buddypress' ), $friend_link, $initiator_link ), $friendship ),
</ins><span class="cx">                         'item_id' => $friendship_id,
</span><span class="cx">                         'secondary_item_id' => $friendship->initiator_user_id,
</span><span class="cx">                         'hide_sitewide' => true // We've already got the first entry site wide
</span></span></pre></div>
<a id="trunkbpgroupsbpgroupstemplatetagsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-groups/bp-groups-templatetags.php (3478 => 3479)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-groups/bp-groups-templatetags.php        2010-11-23 13:13:37 UTC (rev 3478)
+++ trunk/bp-groups/bp-groups-templatetags.php        2010-11-23 22:59:37 UTC (rev 3479)
</span><span class="lines">@@ -187,7 +187,7 @@
</span><span class="cx">         }
</span><span class="cx">
</span><span class="cx">         $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 );
</span><del>-        return apply_filters( 'bp_has_groups', $groups_template->has_groups(), &$groups_template );
</del><ins>+        return apply_filters( 'bp_has_groups', $groups_template->has_groups(), $groups_template );
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> function bp_groups() {
</span><span class="lines">@@ -1382,7 +1382,7 @@
</span><span class="cx">         extract( $r, EXTR_SKIP );
</span><span class="cx">
</span><span class="cx">         $members_template = new BP_Groups_Group_Members_Template( $group_id, $per_page, $max, (int)$exclude_admins_mods, (int)$exclude_banned, $exclude );
</span><del>-        return apply_filters( 'bp_group_has_members', $members_template->has_members(), &$members_template );
</del><ins>+        return apply_filters( 'bp_group_has_members', $members_template->has_members(), $members_template );
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> function bp_group_members() {
</span><span class="lines">@@ -2062,7 +2062,7 @@
</span><span class="cx">         extract( $r, EXTR_SKIP );
</span><span class="cx">
</span><span class="cx">         $requests_template = new BP_Groups_Membership_Requests_Template( $group_id, $per_page, $max );
</span><del>-        return apply_filters( 'bp_group_has_membership_requests', $requests_template->has_requests(), &$requests_template );
</del><ins>+        return apply_filters( 'bp_group_has_membership_requests', $requests_template->has_requests(), $requests_template );
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> function bp_group_membership_requests() {
</span><span class="lines">@@ -2216,7 +2216,7 @@
</span><span class="cx">                 return false;
</span><span class="cx">
</span><span class="cx">         $invites_template = new BP_Groups_Invite_Template( $user_id, $group_id );
</span><del>-        return apply_filters( 'bp_group_has_invites', $invites_template->has_invites(), &$invites_template );
</del><ins>+        return apply_filters( 'bp_group_has_invites', $invites_template->has_invites(), $invites_template );
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> function bp_group_invites() {
</span></span></pre></div>
<a id="trunkbpmessagesbpmessagestemplatetagsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-messages/bp-messages-templatetags.php (3478 => 3479)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-messages/bp-messages-templatetags.php        2010-11-23 13:13:37 UTC (rev 3478)
+++ trunk/bp-messages/bp-messages-templatetags.php        2010-11-23 22:59:37 UTC (rev 3479)
</span><span class="lines">@@ -176,7 +176,7 @@
</span><span class="cx">                 $messages_template = new BP_Messages_Box_Template( $user_id, $box, $per_page, $max, $type );
</span><span class="cx">         }
</span><span class="cx">
</span><del>-        return apply_filters( 'bp_has_message_threads', $messages_template->has_threads(), &$messages_template );
</del><ins>+        return apply_filters( 'bp_has_message_threads', $messages_template->has_threads(), $messages_template );
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> function bp_message_threads() {
</span></span></pre></div>
<a id="trunkbpxprofilebpxprofiletemplatetagsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-xprofile/bp-xprofile-templatetags.php (3478 => 3479)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-xprofile/bp-xprofile-templatetags.php        2010-11-23 13:13:37 UTC (rev 3478)
+++ trunk/bp-xprofile/bp-xprofile-templatetags.php        2010-11-23 22:59:37 UTC (rev 3479)
</span><span class="lines">@@ -158,7 +158,7 @@
</span><span class="cx">         extract( $r, EXTR_SKIP );
</span><span class="cx">
</span><span class="cx">         $profile_template = new BP_XProfile_Data_Template( $user_id, $profile_group_id, $hide_empty_groups, $fetch_fields, $fetch_field_data, $exclude_groups, $exclude_fields );
</span><del>-        return apply_filters( 'bp_has_profile', $profile_template->has_groups(), &$profile_template );
</del><ins>+        return apply_filters( 'bp_has_profile', $profile_template->has_groups(), $profile_template );
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> function bp_profile_groups() {
</span></span></pre>
</div>
</div>
</body>
</html>