<!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] [2822] trunk: Merge 1.2 branch with trunk</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd>2822</dd>
<dt>Author</dt> <dd>apeatling</dd>
<dt>Date</dt> <dd>2010-03-08 16:20:25 +0000 (Mon, 08 Mar 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>Merge 1.2 branch with trunk</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkbpactivitybpactivityclassesphp">trunk/bp-activity/bp-activity-classes.php</a></li>
<li><a href="#trunkbpactivitybpactivitytemplatetagsphp">trunk/bp-activity/bp-activity-templatetags.php</a></li>
<li><a href="#trunkbpactivityphp">trunk/bp-activity.php</a></li>
<li><a href="#trunkbpblogsbpblogstemplatetagsphp">trunk/bp-blogs/bp-blogs-templatetags.php</a></li>
<li><a href="#trunkbpcorebpcoresignupphp">trunk/bp-core/bp-core-signup.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="#trunkbpfriendsphp">trunk/bp-friends.php</a></li>
<li><a href="#trunkbpgroupsphp">trunk/bp-groups.php</a></li>
<li><a href="#trunkbpmessagesbpmessagestemplatetagsphp">trunk/bp-messages/bp-messages-templatetags.php</a></li>
<li><a href="#trunkbpthemesbpdefaultactivityindexphp">trunk/bp-themes/bp-default/activity/index.php</a></li>
<li><a href="#trunkbpthemesbpdefaultgroupssinglepluginsphp">trunk/bp-themes/bp-default/groups/single/plugins.php</a></li>
<li><a href="#trunkbpthemesbpdefaultheaderphp">trunk/bp-themes/bp-default/header.php</a></li>
<li><a href="#trunkbpthemesbpdefaultmemberssingleactivityphp">trunk/bp-themes/bp-default/members/single/activity.php</a></li>
<li><a href="#trunkbpthemesbpdefaultmemberssinglepluginsphp">trunk/bp-themes/bp-default/members/single/plugins.php</a></li>
<li><a href="#trunkbpxprofilephp">trunk/bp-xprofile.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkbpactivitybpactivityclassesphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-activity/bp-activity-classes.php (2821 => 2822)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-activity/bp-activity-classes.php        2010-03-08 16:10:19 UTC (rev 2821)
+++ trunk/bp-activity/bp-activity-classes.php        2010-03-08 16:20:25 UTC (rev 2822)
</span><span class="lines">@@ -198,7 +198,7 @@
</span><span class="cx">                 return array( 'activities' =&gt; $activities, 'total' =&gt; (int)$total_activities );
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        function get_id( $user_id, $component, $type, $item_id, $secondary_item_id, $action, $content ) {
</del><ins>+        function get_id( $user_id, $component, $type, $item_id, $secondary_item_id, $action, $content, $date_recorded ) {
</ins><span class="cx">                 global $bp, $wpdb;
</span><span class="cx"> 
</span><span class="cx">                 $where_args = false;
</span><span class="lines">@@ -224,6 +224,9 @@
</span><span class="cx">                 if ( !empty( $content ) )
</span><span class="cx">                         $where_args[] = $wpdb-&gt;prepare( &quot;content = %s&quot;, $content );
</span><span class="cx"> 
</span><ins>+                if ( !empty( $date_recorded ) )
+                        $where_args[] = $wpdb-&gt;prepare( &quot;date_recorded = %s&quot;, $date_recorded );
+
</ins><span class="cx">                 if ( !empty( $where_args ) )
</span><span class="cx">                         $where_sql = 'WHERE ' . join( ' AND ', $where_args );
</span><span class="cx">                 else
</span></span></pre></div>
<a id="trunkbpactivitybpactivitytemplatetagsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-activity/bp-activity-templatetags.php (2821 => 2822)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-activity/bp-activity-templatetags.php        2010-03-08 16:10:19 UTC (rev 2821)
+++ trunk/bp-activity/bp-activity-templatetags.php        2010-03-08 16:20:25 UTC (rev 2822)
</span><span class="lines">@@ -540,7 +540,7 @@
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx"> function bp_activity_is_favorite() {
</span><del>-        echo bp_get_is_activity_favorite();
</del><ins>+        echo bp_get_activity_is_favorite();
</ins><span class="cx"> }
</span><span class="cx">         function bp_get_activity_is_favorite() {
</span><span class="cx">                 global $bp, $activities_template;
</span></span></pre></div>
<a id="trunkbpactivityphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-activity.php (2821 => 2822)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-activity.php        2010-03-08 16:10:19 UTC (rev 2821)
+++ trunk/bp-activity.php        2010-03-08 16:20:25 UTC (rev 2822)
</span><span class="lines">@@ -247,7 +247,11 @@
</span><span class="cx"> 
</span><span class="cx">         if ( !$has_access ) {
</span><span class="cx">                 bp_core_add_message( __( 'You do not have access to this activity.', 'buddypress' ), 'error' );
</span><del>-                bp_core_redirect( $bp-&gt;loggedin_user-&gt;domain );
</del><ins>+
+                if ( is_user_logged_in() )
+                        bp_core_redirect( $bp-&gt;loggedin_user-&gt;domain );
+                else
+                        bp_core_redirect( site_url( 'wp-login.php?redirect_to=' . clean_url( $bp-&gt;root_domain . '/' . $bp-&gt;activity-&gt;slug . '/p/' . $bp-&gt;current_action ) ) );
</ins><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         bp_core_load_template( apply_filters( 'bp_activity_template_profile_activity_permalink', 'members/single/activity/permalink' ) );
</span><span class="lines">@@ -311,19 +315,21 @@
</span><span class="cx">         /* Redirect based on the type of activity */
</span><span class="cx">         if ( $activity-&gt;component == $bp-&gt;groups-&gt;id ) {
</span><span class="cx">                 if ( $activity-&gt;user_id )
</span><del>-                        $redirect = bp_core_get_user_domain( $activity-&gt;user_id, $activity-&gt;user_nicename, $activity-&gt;user_login ) . $bp-&gt;activity-&gt;slug . '/' . $activity-&gt;id;
</del><ins>+                        $redirect = bp_core_get_user_domain( $activity-&gt;user_id, $activity-&gt;user_nicename, $activity-&gt;user_login ) . $bp-&gt;activity-&gt;slug . '/' . $activity-&gt;id . '/';
</ins><span class="cx">                 else {
</span><span class="cx">                         if ( $group = groups_get_group( array( 'group_id' =&gt; $activity-&gt;item_id ) ) )
</span><del>-                                $redirect = bp_get_group_permalink( $group ) . $bp-&gt;activity-&gt;slug . '/' . $activity-&gt;id;
</del><ins>+                                $redirect = bp_get_group_permalink( $group ) . $bp-&gt;activity-&gt;slug . '/' . $activity-&gt;id . '/';
</ins><span class="cx">                 }
</span><span class="cx">         } else
</span><span class="cx">                 $redirect = bp_core_get_user_domain( $activity-&gt;user_id, $activity-&gt;user_nicename, $activity-&gt;user_login ) . $bp-&gt;activity-&gt;slug . '/' . $activity-&gt;id;
</span><span class="cx"> 
</span><ins>+        $redirect = apply_filters( 'bp_activity_permalink_redirect_url', $redirect, &amp;$activity );
+
</ins><span class="cx">         if ( !$redirect )
</span><span class="cx">                 bp_core_redirect( $bp-&gt;root_domain );
</span><span class="cx"> 
</span><span class="cx">         /* Redirect to the actual activity permalink page */
</span><del>-        bp_core_redirect( apply_filters( 'bp_activity_action_permalink_url', $redirect . '/', &amp;$activity ) );
</del><ins>+        bp_core_redirect( $redirect );
</ins><span class="cx"> }
</span><span class="cx"> add_action( 'wp', 'bp_activity_action_permalink_router', 3 );
</span><span class="cx"> 
</span><span class="lines">@@ -714,6 +720,7 @@
</span><span class="cx">         global $bp;
</span><span class="cx"> 
</span><span class="cx">         $defaults = array(
</span><ins>+                'id' =&gt; false,
</ins><span class="cx">                 'content' =&gt; false,
</span><span class="cx">                 'user_id' =&gt; $bp-&gt;loggedin_user-&gt;id,
</span><span class="cx">                 'activity_id' =&gt; false, // ID of the root activity item
</span><span class="lines">@@ -735,6 +742,7 @@
</span><span class="cx"> 
</span><span class="cx">         /* Insert the activity comment */
</span><span class="cx">         $comment_id = bp_activity_add( array(
</span><ins>+                'id' =&gt; $id,
</ins><span class="cx">                 'action' =&gt; apply_filters( 'bp_activity_comment_action', sprintf( __( '%s posted a new activity comment:', 'buddypress' ), bp_core_get_userlink( $user_id ) ) ),
</span><span class="cx">                 'content' =&gt; apply_filters( 'bp_activity_comment_content', $content ),
</span><span class="cx">                 'component' =&gt; $bp-&gt;activity-&gt;id,
</span><span class="lines">@@ -772,13 +780,14 @@
</span><span class="cx">                 'item_id' =&gt; false,
</span><span class="cx">                 'secondary_item_id' =&gt; false,
</span><span class="cx">                 'action' =&gt; false,
</span><del>-                'content' =&gt; false
</del><ins>+                'content' =&gt; false,
+                'date_recorded' =&gt; false,
</ins><span class="cx">         );
</span><span class="cx"> 
</span><span class="cx">         $r = wp_parse_args( $args, $defaults );
</span><span class="cx">         extract( $r, EXTR_SKIP );
</span><span class="cx"> 
</span><del>-         return apply_filters( 'bp_activity_get_activity_id', BP_Activity_Activity::get_id( $user_id, $component, $type, $item_id, $secondary_item_id, $action, $content ) );
</del><ins>+         return apply_filters( 'bp_activity_get_activity_id', BP_Activity_Activity::get_id( $user_id, $component, $type, $item_id, $secondary_item_id, $action, $content, $date_recorded ) );
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> /***
</span></span></pre></div>
<a id="trunkbpblogsbpblogstemplatetagsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-blogs/bp-blogs-templatetags.php (2821 => 2822)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-blogs/bp-blogs-templatetags.php        2010-03-08 16:10:19 UTC (rev 2821)
+++ trunk/bp-blogs/bp-blogs-templatetags.php        2010-03-08 16:20:25 UTC (rev 2822)
</span><span class="lines">@@ -467,7 +467,7 @@
</span><span class="cx">         global $bp;
</span><span class="cx"> 
</span><span class="cx">         if ( bp_is_my_profile() )        {
</span><del>-                echo apply_filters( 'bp_create_blog_link', '&lt;a href=&quot;' . $bp-&gt;loggedin_user-&gt;domain . $bp-&gt;blogs-&gt;slug . '/create-a-blog&quot;&gt;' . __('Create a Blog', 'buddypress') . '&lt;/a&gt;' );
</del><ins>+                echo apply_filters( 'bp_create_blog_link', '&lt;a href=&quot;' . $bp-&gt;root_domain . '/' . $bp-&gt;blogs-&gt;slug . '/create&quot;&gt;' . __('Create a Blog', 'buddypress') . '&lt;/a&gt;' );
</ins><span class="cx">         }
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkbpcorebpcoresignupphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-core/bp-core-signup.php (2821 => 2822)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-core/bp-core-signup.php        2010-03-08 16:10:19 UTC (rev 2821)
+++ trunk/bp-core/bp-core-signup.php        2010-03-08 16:20:25 UTC (rev 2822)
</span><span class="lines">@@ -234,6 +234,8 @@
</span><span class="cx"> 
</span><span class="cx">         $bp-&gt;signup-&gt;username = $user_login;
</span><span class="cx"> 
</span><ins>+        do_action( 'bp_core_signup_user', $user_id, $user_login, $user_password, $user_email, $usermeta );
+
</ins><span class="cx">         return $user_id;
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkbpcorebpcoretemplatetagsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-core/bp-core-templatetags.php (2821 => 2822)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-core/bp-core-templatetags.php        2010-03-08 16:10:19 UTC (rev 2821)
+++ trunk/bp-core/bp-core-templatetags.php        2010-03-08 16:20:25 UTC (rev 2822)
</span><span class="lines">@@ -1692,7 +1692,7 @@
</span><span class="cx"> function bp_is_create_blog() {
</span><span class="cx">         global $bp;
</span><span class="cx"> 
</span><del>-        if ( BP_BLOGS_SLUG == $bp-&gt;current_component &amp;&amp; 'create-a-blog' == $bp-&gt;current_action )
</del><ins>+        if ( BP_BLOGS_SLUG == $bp-&gt;current_component &amp;&amp; 'create' == $bp-&gt;current_action )
</ins><span class="cx">                 return true;
</span><span class="cx"> 
</span><span class="cx">         return false;
</span></span></pre></div>
<a id="trunkbpcorephp"></a>
<div class="modfile"><h4>Modified: trunk/bp-core.php (2821 => 2822)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-core.php        2010-03-08 16:10:19 UTC (rev 2821)
+++ trunk/bp-core.php        2010-03-08 16:20:25 UTC (rev 2822)
</span><span class="lines">@@ -2103,7 +2103,7 @@
</span><span class="cx">         if ( bp_core_is_multisite() &amp;&amp; $current_blog-&gt;blog_id != BP_ROOT_BLOG )
</span><span class="cx">                 return $redirect_to;
</span><span class="cx"> 
</span><del>-        if ( !empty( $_REQUEST['redirect_to'] ) &amp;&amp; strpos( $_REQUEST['redirect_to'], 'wp-admin' ) )
</del><ins>+        if ( !empty( $_REQUEST['redirect_to'] ) || strpos( $_REQUEST['redirect_to'], 'wp-admin' ) )
</ins><span class="cx">                 return $redirect_to;
</span><span class="cx"> 
</span><span class="cx">         if ( false === strpos( wp_get_referer(), 'wp-login.php' ) &amp;&amp; false === strpos( wp_get_referer(), 'activate' ) &amp;&amp; empty( $_REQUEST['nr'] ) )
</span></span></pre></div>
<a id="trunkbpfriendsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-friends.php (2821 => 2822)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-friends.php        2010-03-08 16:10:19 UTC (rev 2821)
+++ trunk/bp-friends.php        2010-03-08 16:20:25 UTC (rev 2822)
</span><span class="lines">@@ -98,7 +98,7 @@
</span><span class="cx">         global $bp;
</span><span class="cx"> 
</span><span class="cx">         // Delete any friendship acceptance notifications for the user when viewing a profile
</span><del>-        bp_core_delete_notifications_for_user_by_type( $bp-&gt;loggedin_user-&gt;id, 'friends', 'friendship_accepted' );
</del><ins>+        bp_core_delete_notifications_for_user_by_type( $bp-&gt;loggedin_user-&gt;id, $bp-&gt;friends-&gt;id, 'friendship_accepted' );
</ins><span class="cx"> 
</span><span class="cx">         do_action( 'friends_screen_my_friends' );
</span><span class="cx"> 
</span><span class="lines">@@ -133,6 +133,9 @@
</span><span class="cx"> 
</span><span class="cx">         do_action( 'friends_screen_requests' );
</span><span class="cx"> 
</span><ins>+        if ( isset( $_GET['new'] ) )
+                bp_core_delete_notifications_for_user_by_type( $bp-&gt;loggedin_user-&gt;id, $bp-&gt;friends-&gt;id, 'friendship_request' );
+
</ins><span class="cx">         bp_core_load_template( apply_filters( 'friends_template_requests', 'members/single/home' ) );
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -317,11 +320,11 @@
</span><span class="cx"> 
</span><span class="cx">                 case 'friendship_request':
</span><span class="cx">                         if ( (int)$total_items &gt; 1 ) {
</span><del>-                                return apply_filters( 'bp_friends_multiple_friendship_request_notification', '&lt;a href=&quot;' . $bp-&gt;loggedin_user-&gt;domain . $bp-&gt;friends-&gt;slug . '/requests&quot; title=&quot;' . __( 'Friendship requests', 'buddypress' ) . '&quot;&gt;' . sprintf( __('You have %d pending friendship requests', 'buddypress' ), (int)$total_items ) . '&lt;/a&gt;', $total_items );
</del><ins>+                                return apply_filters( 'bp_friends_multiple_friendship_request_notification', '&lt;a href=&quot;' . $bp-&gt;loggedin_user-&gt;domain . $bp-&gt;friends-&gt;slug . '/requests/?new&quot; title=&quot;' . __( 'Friendship requests', 'buddypress' ) . '&quot;&gt;' . sprintf( __('You have %d pending friendship requests', 'buddypress' ), (int)$total_items ) . '&lt;/a&gt;', $total_items );
</ins><span class="cx">                         } else {
</span><span class="cx">                                 $user_fullname = bp_core_get_user_displayname( $item_id );
</span><span class="cx">                                 $user_url = bp_core_get_user_domain( $item_id );
</span><del>-                                return apply_filters( 'bp_friends_single_friendship_request_notification', '&lt;a href=&quot;' . $bp-&gt;loggedin_user-&gt;domain . $bp-&gt;friends-&gt;slug . '/requests&quot; title=&quot;' . __( 'Friendship requests', 'buddypress' ) . '&quot;&gt;' . sprintf( __('You have a friendship request from %s', 'buddypress' ), $user_fullname ) . '&lt;/a&gt;', $user_fullname );
</del><ins>+                                return apply_filters( 'bp_friends_single_friendship_request_notification', '&lt;a href=&quot;' . $bp-&gt;loggedin_user-&gt;domain . $bp-&gt;friends-&gt;slug . '/requests/?new&quot; title=&quot;' . __( 'Friendship requests', 'buddypress' ) . '&quot;&gt;' . sprintf( __('You have a friendship request from %s', 'buddypress' ), $user_fullname ) . '&lt;/a&gt;', $user_fullname );
</ins><span class="cx">                         }
</span><span class="cx">                 break;
</span><span class="cx">         }
</span><span class="lines">@@ -362,7 +365,7 @@
</span><span class="cx"> 
</span><span class="cx">                 if ( !$force_accept ) {
</span><span class="cx">                         // Add the on screen notification
</span><del>-                        bp_core_add_notification( $friendship-&gt;initiator_user_id, $friendship-&gt;friend_user_id, 'friends', 'friendship_request' );
</del><ins>+                        bp_core_add_notification( $friendship-&gt;initiator_user_id, $friendship-&gt;friend_user_id, $bp-&gt;friends-&gt;id, 'friendship_request' );
</ins><span class="cx"> 
</span><span class="cx">                         // Send the email notification
</span><span class="cx">                         require_once( BP_PLUGIN_DIR . '/bp-friends/bp-friends-notifications.php' );
</span><span class="lines">@@ -408,10 +411,10 @@
</span><span class="cx">                 friends_update_friend_totals( $friendship-&gt;initiator_user_id, $friendship-&gt;friend_user_id );
</span><span class="cx"> 
</span><span class="cx">                 /* Remove the friend request notice */
</span><del>-                bp_core_delete_notifications_for_user_by_item_id( $friendship-&gt;friend_user_id, $friendship-&gt;initiator_user_id, 'friends', 'friendship_request' );
</del><ins>+                bp_core_delete_notifications_for_user_by_item_id( $friendship-&gt;friend_user_id, $friendship-&gt;initiator_user_id, $bp-&gt;friends-&gt;id, 'friendship_request' );
</ins><span class="cx"> 
</span><span class="cx">                 /* Add a friend accepted notice for the initiating user */
</span><del>-                bp_core_add_notification( $friendship-&gt;friend_user_id, $friendship-&gt;initiator_user_id, 'friends', 'friendship_accepted' );
</del><ins>+                bp_core_add_notification( $friendship-&gt;friend_user_id, $friendship-&gt;initiator_user_id, $bp-&gt;friends-&gt;id, 'friendship_accepted' );
</ins><span class="cx"> 
</span><span class="cx">                 $initiator_link = bp_core_get_userlink( $friendship-&gt;initiator_user_id );
</span><span class="cx">                 $friend_link = bp_core_get_userlink( $friendship-&gt;friend_user_id );
</span><span class="lines">@@ -449,7 +452,7 @@
</span><span class="cx"> 
</span><span class="cx">         if ( !$friendship-&gt;is_confirmed &amp;&amp; BP_Friends_Friendship::reject( $friendship_id ) ) {
</span><span class="cx">                 // Remove the friend request notice
</span><del>-                bp_core_delete_notifications_for_user_by_item_id( $friendship-&gt;friend_user_id, $friendship-&gt;initiator_user_id, 'friends', 'friendship_request' );
</del><ins>+                bp_core_delete_notifications_for_user_by_item_id( $friendship-&gt;friend_user_id, $friendship-&gt;initiator_user_id, $bp-&gt;friends-&gt;id, 'friendship_request' );
</ins><span class="cx"> 
</span><span class="cx">                 do_action( 'friends_friendship_rejected', $friendship_id, &amp;$friendship );
</span><span class="cx">                 return true;
</span><span class="lines">@@ -597,7 +600,7 @@
</span><span class="cx">         delete_usermeta( $user_id, 'total_friend_count' );
</span><span class="cx"> 
</span><span class="cx">         /* Remove friendship requests FROM user */
</span><del>-        bp_core_delete_notifications_from_user( $user_id, $bp-&gt;friends-&gt;slug, 'friendship_request' );
</del><ins>+        bp_core_delete_notifications_from_user( $user_id, $bp-&gt;friends-&gt;id, 'friendship_request' );
</ins><span class="cx"> 
</span><span class="cx">         do_action( 'friends_remove_data', $user_id );
</span><span class="cx"> }
</span><span class="lines">@@ -631,7 +634,7 @@
</span><span class="cx">         global $bp;
</span><span class="cx"> 
</span><span class="cx">         if ( isset($_GET['new']) )
</span><del>-                bp_core_delete_notifications_for_user_by_type( $bp-&gt;loggedin_user-&gt;id, 'friends', 'friendship_accepted' );
</del><ins>+                bp_core_delete_notifications_for_user_by_type( $bp-&gt;displayed_user-&gt;id, $bp-&gt;friends-&gt;id, 'friendship_accepted' );
</ins><span class="cx"> }
</span><span class="cx"> add_action( 'bp_activity_screen_my_activity', 'friends_clear_friend_notifications' );
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkbpgroupsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-groups.php (2821 => 2822)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-groups.php        2010-03-08 16:10:19 UTC (rev 2821)
+++ trunk/bp-groups.php        2010-03-08 16:20:25 UTC (rev 2822)
</span><span class="lines">@@ -268,10 +268,10 @@
</span><span class="cx"> 
</span><span class="cx">         if ( isset($_GET['n']) ) {
</span><span class="cx">                 // Delete group request notifications for the user
</span><del>-                bp_core_delete_notifications_for_user_by_type( $bp-&gt;loggedin_user-&gt;id, $bp-&gt;groups-&gt;slug, 'membership_request_accepted' );
-                bp_core_delete_notifications_for_user_by_type( $bp-&gt;loggedin_user-&gt;id, $bp-&gt;groups-&gt;slug, 'membership_request_rejected' );
-                bp_core_delete_notifications_for_user_by_type( $bp-&gt;loggedin_user-&gt;id, $bp-&gt;groups-&gt;slug, 'member_promoted_to_mod' );
-                bp_core_delete_notifications_for_user_by_type( $bp-&gt;loggedin_user-&gt;id, $bp-&gt;groups-&gt;slug, 'member_promoted_to_admin' );
</del><ins>+                bp_core_delete_notifications_for_user_by_type( $bp-&gt;loggedin_user-&gt;id, $bp-&gt;groups-&gt;id, 'membership_request_accepted' );
+                bp_core_delete_notifications_for_user_by_type( $bp-&gt;loggedin_user-&gt;id, $bp-&gt;groups-&gt;id, 'membership_request_rejected' );
+                bp_core_delete_notifications_for_user_by_type( $bp-&gt;loggedin_user-&gt;id, $bp-&gt;groups-&gt;id, 'member_promoted_to_mod' );
+                bp_core_delete_notifications_for_user_by_type( $bp-&gt;loggedin_user-&gt;id, $bp-&gt;groups-&gt;id, 'member_promoted_to_admin' );
</ins><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         do_action( 'groups_screen_my_groups' );
</span><span class="lines">@@ -321,7 +321,7 @@
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         // Remove notifications
</span><del>-        bp_core_delete_notifications_for_user_by_type( $bp-&gt;loggedin_user-&gt;id, $bp-&gt;groups-&gt;slug, 'group_invite' );
</del><ins>+        bp_core_delete_notifications_for_user_by_type( $bp-&gt;loggedin_user-&gt;id, $bp-&gt;groups-&gt;id, 'group_invite' );
</ins><span class="cx"> 
</span><span class="cx">         do_action( 'groups_screen_group_invites', $group_id );
</span><span class="cx"> 
</span><span class="lines">@@ -334,10 +334,10 @@
</span><span class="cx">         if ( $bp-&gt;is_single_item ) {
</span><span class="cx">                 if ( isset($_GET['n']) ) {
</span><span class="cx">                         // Delete group request notifications for the user
</span><del>-                        bp_core_delete_notifications_for_user_by_type( $bp-&gt;loggedin_user-&gt;id, $bp-&gt;groups-&gt;slug, 'membership_request_accepted' );
-                        bp_core_delete_notifications_for_user_by_type( $bp-&gt;loggedin_user-&gt;id, $bp-&gt;groups-&gt;slug, 'membership_request_rejected' );
-                        bp_core_delete_notifications_for_user_by_type( $bp-&gt;loggedin_user-&gt;id, $bp-&gt;groups-&gt;slug, 'member_promoted_to_mod' );
-                        bp_core_delete_notifications_for_user_by_type( $bp-&gt;loggedin_user-&gt;id, $bp-&gt;groups-&gt;slug, 'member_promoted_to_admin' );
</del><ins>+                        bp_core_delete_notifications_for_user_by_type( $bp-&gt;loggedin_user-&gt;id, $bp-&gt;groups-&gt;id, 'membership_request_accepted' );
+                        bp_core_delete_notifications_for_user_by_type( $bp-&gt;loggedin_user-&gt;id, $bp-&gt;groups-&gt;id, 'membership_request_rejected' );
+                        bp_core_delete_notifications_for_user_by_type( $bp-&gt;loggedin_user-&gt;id, $bp-&gt;groups-&gt;id, 'member_promoted_to_mod' );
+                        bp_core_delete_notifications_for_user_by_type( $bp-&gt;loggedin_user-&gt;id, $bp-&gt;groups-&gt;id, 'member_promoted_to_admin' );
</ins><span class="cx">                 }
</span><span class="cx"> 
</span><span class="cx">                 do_action( 'groups_screen_group_home' );
</span><span class="lines">@@ -872,7 +872,7 @@
</span><span class="cx">                         return false;
</span><span class="cx"> 
</span><span class="cx">                 // Remove any screen notifications
</span><del>-                bp_core_delete_notifications_for_user_by_type( $bp-&gt;loggedin_user-&gt;id, $bp-&gt;groups-&gt;slug, 'new_membership_request' );
</del><ins>+                bp_core_delete_notifications_for_user_by_type( $bp-&gt;loggedin_user-&gt;id, $bp-&gt;groups-&gt;id, 'new_membership_request' );
</ins><span class="cx"> 
</span><span class="cx">                 $request_action = $bp-&gt;action_variables[1];
</span><span class="cx">                 $membership_id = $bp-&gt;action_variables[2];
</span><span class="lines">@@ -1544,6 +1544,7 @@
</span><span class="cx">                 }
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        groups_update_groupmeta( $group-&gt;id, 'last_activity', gmdate( &quot;Y-m-d H:i:s&quot; ) );
</ins><span class="cx">         do_action( 'groups_settings_updated', $group-&gt;id );
</span><span class="cx"> 
</span><span class="cx">         return true;
</span><span class="lines">@@ -1841,7 +1842,7 @@
</span><span class="cx">         $defaults = array(
</span><span class="cx">                 'content' =&gt; false,
</span><span class="cx">                 'user_id' =&gt; $bp-&gt;loggedin_user-&gt;id,
</span><del>-                'group_id' =&gt; false
</del><ins>+                'group_id' =&gt; $bp-&gt;groups-&gt;current_group-&gt;id
</ins><span class="cx">         );
</span><span class="cx"> 
</span><span class="cx">         $r = wp_parse_args( $args, $defaults );
</span><span class="lines">@@ -1865,7 +1866,7 @@
</span><span class="cx">                 'action' =&gt; apply_filters( 'groups_activity_new_update_action', $activity_action ),
</span><span class="cx">                 'content' =&gt; apply_filters( 'groups_activity_new_update_content', $activity_content ),
</span><span class="cx">                 'type' =&gt; 'activity_update',
</span><del>-                'item_id' =&gt; $bp-&gt;groups-&gt;current_group-&gt;id
</del><ins>+                'item_id' =&gt; $group_id
</ins><span class="cx">         ) );
</span><span class="cx"> 
</span><span class="cx">          /* Require the notifications code so email notifications can be set on the 'bp_activity_posted_update' action. */
</span><span class="lines">@@ -2158,7 +2159,7 @@
</span><span class="cx">         groups_update_groupmeta( $group_id, 'total_member_count', (int) groups_get_groupmeta( $group_id, 'total_member_count') + 1 );
</span><span class="cx">         groups_update_groupmeta( $group_id, 'last_activity', gmdate( &quot;Y-m-d H:i:s&quot; ) );
</span><span class="cx"> 
</span><del>-        bp_core_delete_notifications_for_user_by_item_id( $user_id, $group_id, $bp-&gt;groups-&gt;slug, 'group_invite' );
</del><ins>+        bp_core_delete_notifications_for_user_by_item_id( $user_id, $group_id, $bp-&gt;groups-&gt;id, 'group_invite' );
</ins><span class="cx"> 
</span><span class="cx">         do_action( 'groups_accept_invite', $user_id, $group_id );
</span><span class="cx">         return true;
</span><span class="lines">@@ -2179,7 +2180,7 @@
</span><span class="cx">         $delete = BP_Groups_Member::delete_invite( $user_id, $group_id );
</span><span class="cx"> 
</span><span class="cx">         if ( $delete )
</span><del>-                bp_core_delete_notifications_for_user_by_item_id( $user_id, $group_id, $bp-&gt;groups-&gt;slug, 'group_invite' );
</del><ins>+                bp_core_delete_notifications_for_user_by_item_id( $user_id, $group_id, $bp-&gt;groups-&gt;id, 'group_invite' );
</ins><span class="cx"> 
</span><span class="cx">         return $delete;
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkbpmessagesbpmessagestemplatetagsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-messages/bp-messages-templatetags.php (2821 => 2822)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-messages/bp-messages-templatetags.php        2010-03-08 16:10:19 UTC (rev 2821)
+++ trunk/bp-messages/bp-messages-templatetags.php        2010-03-08 16:20:25 UTC (rev 2822)
</span><span class="lines">@@ -161,7 +161,7 @@
</span><span class="cx">                 wp_redirect( $bp-&gt;displayed_user-&gt;id );
</span><span class="cx">         } else {
</span><span class="cx">                 if ( 'inbox' == $bp-&gt;current_action )
</span><del>-                        bp_core_delete_notifications_for_user_by_type( $bp-&gt;loggedin_user-&gt;id, 'messages', 'new_message' );
</del><ins>+                        bp_core_delete_notifications_for_user_by_type( $bp-&gt;loggedin_user-&gt;id, $bp-&gt;messages-&gt;id, 'new_message' );
</ins><span class="cx"> 
</span><span class="cx">                 if ( 'sentbox' == $bp-&gt;current_action )
</span><span class="cx">                         $box = 'sentbox';
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultactivityindexphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/activity/index.php (2821 => 2822)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/activity/index.php        2010-03-08 16:10:19 UTC (rev 2821)
+++ trunk/bp-themes/bp-default/activity/index.php        2010-03-08 16:20:25 UTC (rev 2822)
</span><span class="lines">@@ -65,9 +65,12 @@
</span><span class="cx">                                                 &lt;select&gt;
</span><span class="cx">                                                         &lt;option value=&quot;-1&quot;&gt;&lt;?php _e( 'No Filter', 'buddypress' ) ?&gt;&lt;/option&gt;
</span><span class="cx">                                                         &lt;option value=&quot;activity_update&quot;&gt;&lt;?php _e( 'Show Updates', 'buddypress' ) ?&gt;&lt;/option&gt;
</span><del>-                                                        &lt;option value=&quot;new_blog_post&quot;&gt;&lt;?php _e( 'Show Blog Posts', 'buddypress' ) ?&gt;&lt;/option&gt;
-                                                        &lt;option value=&quot;new_blog_comment&quot;&gt;&lt;?php _e( 'Show Blog Comments', 'buddypress' ) ?&gt;&lt;/option&gt;
</del><span class="cx"> 
</span><ins>+                                                        &lt;?php if ( bp_is_active( 'blogs' ) ) : ?&gt;
+                                                                &lt;option value=&quot;new_blog_post&quot;&gt;&lt;?php _e( 'Show Blog Posts', 'buddypress' ) ?&gt;&lt;/option&gt;
+                                                                &lt;option value=&quot;new_blog_comment&quot;&gt;&lt;?php _e( 'Show Blog Comments', 'buddypress' ) ?&gt;&lt;/option&gt;
+                                                        &lt;?php endif; ?&gt;
+
</ins><span class="cx">                                                         &lt;?php if ( bp_is_active( 'forums' ) ) : ?&gt;
</span><span class="cx">                                                                 &lt;option value=&quot;new_forum_topic&quot;&gt;&lt;?php _e( 'Show New Forum Topics', 'buddypress' ) ?&gt;&lt;/option&gt;
</span><span class="cx">                                                                 &lt;option value=&quot;new_forum_post&quot;&gt;&lt;?php _e( 'Show Forum Replies', 'buddypress' ) ?&gt;&lt;/option&gt;
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultgroupssinglepluginsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/groups/single/plugins.php (2821 => 2822)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/groups/single/plugins.php        2010-03-08 16:10:19 UTC (rev 2821)
+++ trunk/bp-themes/bp-default/groups/single/plugins.php        2010-03-08 16:20:25 UTC (rev 2822)
</span><span class="lines">@@ -11,7 +11,7 @@
</span><span class="cx">                         &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx">                         &lt;div id=&quot;item-nav&quot;&gt;
</span><del>-                                &lt;div class=&quot;item-list-tabs no-ajax&quot; id=&quot;sub-nav&quot;&gt;
</del><ins>+                                &lt;div class=&quot;item-list-tabs no-ajax&quot; id=&quot;object-nav&quot;&gt;
</ins><span class="cx">                                         &lt;ul&gt;
</span><span class="cx">                                                 &lt;?php bp_get_options_nav() ?&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultheaderphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/header.php (2821 => 2822)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/header.php        2010-03-08 16:10:19 UTC (rev 2821)
+++ trunk/bp-themes/bp-default/header.php        2010-03-08 16:20:25 UTC (rev 2822)
</span><span class="lines">@@ -63,7 +63,7 @@
</span><span class="cx">                                                 &lt;a href=&quot;&lt;?php echo site_url() ?&gt;/&lt;?php echo BP_GROUPS_SLUG ?&gt;/&quot; title=&quot;&lt;?php _e( 'Groups', 'buddypress' ) ?&gt;&quot;&gt;&lt;?php _e( 'Groups', 'buddypress' ) ?&gt;&lt;/a&gt;
</span><span class="cx">                                         &lt;/li&gt;
</span><span class="cx"> 
</span><del>-                                        &lt;?php if ( bp_is_active( 'forums' ) &amp;&amp; bp_is_active( 'groups' ) &amp;&amp; ( function_exists( 'bp_forums_is_installed_correctly' ) &amp;&amp; !(int) bp_get_option( 'bp-disable-forum-directory' ) ) &amp;&amp; bp_forums_is_installed_correctly() ) : ?&gt;
</del><ins>+                                        &lt;?php if ( bp_is_active( 'forums' ) &amp;&amp; ( function_exists( 'bp_forums_is_installed_correctly' ) &amp;&amp; !(int) bp_get_option( 'bp-disable-forum-directory' ) ) &amp;&amp; bp_forums_is_installed_correctly() ) : ?&gt;
</ins><span class="cx">                                                 &lt;li&lt;?php if ( bp_is_page( BP_FORUMS_SLUG ) ) : ?&gt; class=&quot;selected&quot;&lt;?php endif; ?&gt;&gt;
</span><span class="cx">                                                         &lt;a href=&quot;&lt;?php echo site_url() ?&gt;/&lt;?php echo BP_FORUMS_SLUG ?&gt;/&quot; title=&quot;&lt;?php _e( 'Forums', 'buddypress' ) ?&gt;&quot;&gt;&lt;?php _e( 'Forums', 'buddypress' ) ?&gt;&lt;/a&gt;
</span><span class="cx">                                                 &lt;/li&gt;
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultmemberssingleactivityphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/members/single/activity.php (2821 => 2822)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/members/single/activity.php        2010-03-08 16:10:19 UTC (rev 2821)
+++ trunk/bp-themes/bp-default/members/single/activity.php        2010-03-08 16:20:25 UTC (rev 2822)
</span><span class="lines">@@ -8,8 +8,10 @@
</span><span class="cx">                                 &lt;option value=&quot;activity_update&quot;&gt;&lt;?php _e( 'Show Updates', 'buddypress' ) ?&gt;&lt;/option&gt;
</span><span class="cx"> 
</span><span class="cx">                                 &lt;?php if ( 'groups' != bp_current_action() ) : ?&gt;
</span><del>-                                        &lt;option value=&quot;new_blog_post&quot;&gt;&lt;?php _e( 'Show Blog Posts', 'buddypress' ) ?&gt;&lt;/option&gt;
-                                        &lt;option value=&quot;new_blog_comment&quot;&gt;&lt;?php _e( 'Show Blog Comments', 'buddypress' ) ?&gt;&lt;/option&gt;
</del><ins>+                                        &lt;?php if ( bp_is_active( 'blogs' ) ) : ?&gt;
+                                                &lt;option value=&quot;new_blog_post&quot;&gt;&lt;?php _e( 'Show Blog Posts', 'buddypress' ) ?&gt;&lt;/option&gt;
+                                                &lt;option value=&quot;new_blog_comment&quot;&gt;&lt;?php _e( 'Show Blog Comments', 'buddypress' ) ?&gt;&lt;/option&gt;
+                                        &lt;?php endif; ?&gt;
</ins><span class="cx"> 
</span><span class="cx">                                         &lt;?php if ( bp_is_active( 'friends' ) ) : ?&gt;
</span><span class="cx">                                                 &lt;option value=&quot;friendship_accepted,friendship_created&quot;&gt;&lt;?php _e( 'Show Friendship Connections', 'buddypress' ) ?&gt;&lt;/option&gt;
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultmemberssinglepluginsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/members/single/plugins.php (2821 => 2822)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/members/single/plugins.php        2010-03-08 16:10:19 UTC (rev 2821)
+++ trunk/bp-themes/bp-default/members/single/plugins.php        2010-03-08 16:20:25 UTC (rev 2822)
</span><span class="lines">@@ -13,8 +13,6 @@
</span><span class="cx">                                 &lt;div class=&quot;item-list-tabs no-ajax&quot; id=&quot;object-nav&quot;&gt;
</span><span class="cx">                                         &lt;ul&gt;
</span><span class="cx">                                                 &lt;?php bp_get_displayed_user_nav() ?&gt;
</span><del>-
-                                                &lt;?php do_action( 'bp_members_directory_member_types' ) ?&gt;
</del><span class="cx">                                         &lt;/ul&gt;
</span><span class="cx">                                 &lt;/div&gt;
</span><span class="cx">                         &lt;/div&gt;
</span><span class="lines">@@ -24,13 +22,13 @@
</span><span class="cx">                                 &lt;div class=&quot;item-list-tabs no-ajax&quot; id=&quot;subnav&quot;&gt;
</span><span class="cx">                                         &lt;ul&gt;
</span><span class="cx">                                                 &lt;?php bp_get_options_nav() ?&gt;
</span><ins>+
+                                                &lt;?php do_action( 'bp_member_plugin_options_nav' ) ?&gt;
</ins><span class="cx">                                         &lt;/ul&gt;
</span><span class="cx">                                 &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx">                                 &lt;?php do_action( 'bp_template_content' ) ?&gt;
</span><span class="cx"> 
</span><del>-                                &lt;?php do_action( 'bp_directory_members_content' ) ?&gt;
-
</del><span class="cx">                         &lt;/div&gt;&lt;!-- #item-body --&gt;
</span><span class="cx"> 
</span><span class="cx">                         &lt;?php do_action( 'bp_after_member_plugin_template' ) ?&gt;
</span></span></pre></div>
<a id="trunkbpxprofilephp"></a>
<div class="modfile"><h4>Modified: trunk/bp-xprofile.php (2821 => 2822)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-xprofile.php        2010-03-08 16:10:19 UTC (rev 2821)
+++ trunk/bp-xprofile.php        2010-03-08 16:20:25 UTC (rev 2822)
</span><span class="lines">@@ -898,13 +898,19 @@
</span><span class="cx">  *
</span><span class="cx">  * @package BuddyPress Core
</span><span class="cx">  */
</span><del>-function xprofile_sync_wp_profile() {
</del><ins>+function xprofile_sync_wp_profile( $user_id = false ) {
</ins><span class="cx">         global $bp, $wpdb;
</span><span class="cx"> 
</span><span class="cx">         if ( (int)$bp-&gt;site_options['bp-disable-profile-sync'] )
</span><span class="cx">                 return true;
</span><span class="cx"> 
</span><del>-        $fullname = xprofile_get_field_data( BP_XPROFILE_FULLNAME_FIELD_NAME, $bp-&gt;loggedin_user-&gt;id );
</del><ins>+        if ( empty( $user_id ) )
+                $user_id = $bp-&gt;loggedin_user-&gt;id;
+
+        if ( empty( $user_id ) )
+                return false;
+
+        $fullname = xprofile_get_field_data( BP_XPROFILE_FULLNAME_FIELD_NAME, $user_id );
</ins><span class="cx">         $space = strpos( $fullname, ' ' );
</span><span class="cx"> 
</span><span class="cx">         if ( false === $space ) {
</span><span class="lines">@@ -915,16 +921,16 @@
</span><span class="cx">                 $lastname = trim( substr( $fullname, $space, strlen($fullname) ) );
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        update_usermeta( $bp-&gt;loggedin_user-&gt;id, 'nickname', $fullname );
-        update_usermeta( $bp-&gt;loggedin_user-&gt;id, 'first_name', $firstname );
-        update_usermeta( $bp-&gt;loggedin_user-&gt;id, 'last_name', $lastname );
</del><ins>+        update_usermeta( $user_id, 'nickname', $fullname );
+        update_usermeta( $user_id, 'first_name', $firstname );
+        update_usermeta( $user_id, 'last_name', $lastname );
</ins><span class="cx"> 
</span><del>-        $wpdb-&gt;query( $wpdb-&gt;prepare( &quot;UPDATE {$wpdb-&gt;users} SET display_name = %s WHERE ID = %d&quot;, $fullname, $bp-&gt;loggedin_user-&gt;id ) );
-        $wpdb-&gt;query( $wpdb-&gt;prepare( &quot;UPDATE {$wpdb-&gt;users} SET user_url = %s WHERE ID = %d&quot;, bp_core_get_user_domain( $bp-&gt;loggedin_user-&gt;id ), $bp-&gt;loggedin_user-&gt;id ) );
</del><ins>+        $wpdb-&gt;query( $wpdb-&gt;prepare( &quot;UPDATE {$wpdb-&gt;users} SET display_name = %s WHERE ID = %d&quot;, $fullname, $user_id ) );
+        $wpdb-&gt;query( $wpdb-&gt;prepare( &quot;UPDATE {$wpdb-&gt;users} SET user_url = %s WHERE ID = %d&quot;, bp_core_get_user_domain( $user_id ), $user_id ) );
</ins><span class="cx"> }
</span><span class="cx"> add_action( 'xprofile_updated_profile', 'xprofile_sync_wp_profile' );
</span><ins>+add_action( 'bp_core_signup_user', 'xprofile_sync_wp_profile' );
</ins><span class="cx"> 
</span><del>-
</del><span class="cx"> /**
</span><span class="cx">  * xprofile_remove_screen_notifications()
</span><span class="cx">  *
</span></span></pre>
</div>
</div>

</body>
</html>