<!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] [3358] trunk: Deprecated bp_core_is_multisite()</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd>3358</dd>
<dt>Author</dt> <dd>djpaul</dd>
<dt>Date</dt> <dd>2010-11-05 21:44:38 +0000 (Fri, 05 Nov 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>Deprecated bp_core_is_multisite()</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkbpblogsphp">trunk/bp-blogs.php</a></li>
<li><a href="#trunkbpcoreadminbpcoreadminphp">trunk/bp-core/admin/bp-core-admin.php</a></li>
<li><a href="#trunkbpcoreadminbpcoreupgradephp">trunk/bp-core/admin/bp-core-upgrade.php</a></li>
<li><a href="#trunkbpcorebpcoreadminbarphp">trunk/bp-core/bp-core-adminbar.php</a></li>
<li><a href="#trunkbpcorebpcoreavatarsphp">trunk/bp-core/bp-core-avatars.php</a></li>
<li><a href="#trunkbpcorebpcorecatchuriphp">trunk/bp-core/bp-core-catchuri.php</a></li>
<li><a href="#trunkbpcorebpcorecssjsphp">trunk/bp-core/bp-core-cssjs.php</a></li>
<li><a href="#trunkbpcorebpcorefiltersphp">trunk/bp-core/bp-core-filters.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="#trunkbpcorebpcorewpabstractionphp">trunk/bp-core/bp-core-wpabstraction.php</a></li>
<li><a href="#trunkbpcorephp">trunk/bp-core.php</a></li>
<li><a href="#trunkbpforumsbpforumsadminphp">trunk/bp-forums/bp-forums-admin.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkbpblogsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-blogs.php (3357 => 3358)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-blogs.php        2010-11-05 21:37:15 UTC (rev 3357)
+++ trunk/bp-blogs.php        2010-11-05 21:44:38 UTC (rev 3358)
</span><span class="lines">@@ -3,7 +3,7 @@
</span><span class="cx"> require ( BP_PLUGIN_DIR . '/bp-blogs/bp-blogs-templatetags.php' );
</span><span class="cx"> 
</span><span class="cx"> /* Include the sitewide blog posts widget if this is a multisite installation */
</span><del>-if ( bp_core_is_multisite() )
</del><ins>+if ( is_multisite() )
</ins><span class="cx">         require ( BP_PLUGIN_DIR . '/bp-blogs/bp-blogs-widgets.php' );
</span><span class="cx"> 
</span><span class="cx"> function bp_blogs_setup_globals() {
</span><span class="lines">@@ -43,7 +43,7 @@
</span><span class="cx"> 
</span><span class="cx">         /* Blog/post/comment menus should not appear on single WordPress setups. Although comments
</span><span class="cx">            and posts made by users will still show on their activity stream .*/
</span><del>-        if ( !bp_core_is_multisite() )
</del><ins>+        if ( !is_multisite() )
</ins><span class="cx">                 return false;
</span><span class="cx"> 
</span><span class="cx">         /* Add 'Blogs' to the main navigation */
</span><span class="lines">@@ -71,7 +71,7 @@
</span><span class="cx"> function bp_blogs_directory_blogs_setup() {
</span><span class="cx">         global $bp;
</span><span class="cx"> 
</span><del>-        if ( bp_core_is_multisite() &amp;&amp; $bp-&gt;current_component == $bp-&gt;blogs-&gt;slug &amp;&amp; empty( $bp-&gt;current_action ) ) {
</del><ins>+        if ( is_multisite() &amp;&amp; $bp-&gt;current_component == $bp-&gt;blogs-&gt;slug &amp;&amp; empty( $bp-&gt;current_action ) ) {
</ins><span class="cx">                 $bp-&gt;is_directory = true;
</span><span class="cx"> 
</span><span class="cx">                 do_action( 'bp_blogs_directory_blogs_setup' );
</span><span class="lines">@@ -92,7 +92,7 @@
</span><span class="cx"> function bp_blogs_screen_my_blogs() {
</span><span class="cx">         global $bp;
</span><span class="cx"> 
</span><del>-        if ( !bp_core_is_multisite() )
</del><ins>+        if ( !is_multisite() )
</ins><span class="cx">                 return false;
</span><span class="cx"> 
</span><span class="cx">         do_action( 'bp_blogs_screen_my_blogs' );
</span><span class="lines">@@ -102,7 +102,7 @@
</span><span class="cx"> function bp_blogs_screen_create_a_blog() {
</span><span class="cx">         global $bp;
</span><span class="cx"> 
</span><del>-        if ( !bp_core_is_multisite() || $bp-&gt;current_component != $bp-&gt;blogs-&gt;slug || 'create' != $bp-&gt;current_action )
</del><ins>+        if ( !is_multisite() || $bp-&gt;current_component != $bp-&gt;blogs-&gt;slug || 'create' != $bp-&gt;current_action )
</ins><span class="cx">                 return false;
</span><span class="cx"> 
</span><span class="cx">         if ( !is_user_logged_in() || !bp_blog_signup_enabled() )
</span><span class="lines">@@ -357,7 +357,7 @@
</span><span class="cx">                 return false;
</span><span class="cx"> 
</span><span class="cx">         if ( 'publish' == $post-&gt;post_status &amp;&amp; '' == $post-&gt;post_password ) {
</span><del>-                if ( (int)get_blog_option( $blog_id, 'blog_public' ) || !bp_core_is_multisite() ) {
</del><ins>+                if ( (int)get_blog_option( $blog_id, 'blog_public' ) || !is_multisite() ) {
</ins><span class="cx">                         /* Record this in activity streams */
</span><span class="cx">                         $post_permalink = get_permalink( $post_id );
</span><span class="cx"> 
</span><span class="lines">@@ -615,7 +615,7 @@
</span><span class="cx"> function bp_blogs_delete_blogmeta( $blog_id, $meta_key = false, $meta_value = false ) {
</span><span class="cx">         global $wpdb, $bp;
</span><span class="cx"> 
</span><del>-        if ( !is_numeric( $blog_id ) || !bp_core_is_multisite() )
</del><ins>+        if ( !is_numeric( $blog_id ) || !is_multisite() )
</ins><span class="cx">                 return false;
</span><span class="cx"> 
</span><span class="cx">         $meta_key = preg_replace('|[^a-z0-9_]|i', '', $meta_key);
</span><span class="lines">@@ -643,7 +643,7 @@
</span><span class="cx"> 
</span><span class="cx">         $blog_id = (int) $blog_id;
</span><span class="cx"> 
</span><del>-        if ( !$blog_id || !bp_core_is_multisite() )
</del><ins>+        if ( !$blog_id || !is_multisite() )
</ins><span class="cx">                 return false;
</span><span class="cx"> 
</span><span class="cx">         if ( !empty($meta_key) ) {
</span><span class="lines">@@ -675,7 +675,7 @@
</span><span class="cx"> function bp_blogs_update_blogmeta( $blog_id, $meta_key, $meta_value ) {
</span><span class="cx">         global $wpdb, $bp;
</span><span class="cx"> 
</span><del>-        if ( !is_numeric( $blog_id ) || !bp_core_is_multisite() )
</del><ins>+        if ( !is_numeric( $blog_id ) || !is_multisite() )
</ins><span class="cx">                 return false;
</span><span class="cx"> 
</span><span class="cx">         $meta_key = preg_replace( '|[^a-z0-9_]|i', '', $meta_key );
</span><span class="lines">@@ -705,7 +705,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> function bp_blogs_remove_data( $user_id ) {
</span><del>-        if ( !bp_core_is_multisite() )
</del><ins>+        if ( !is_multisite() )
</ins><span class="cx">                 return false;
</span><span class="cx"> 
</span><span class="cx">         /* If this is regular blog, delete all data for that blog. */
</span></span></pre></div>
<a id="trunkbpcoreadminbpcoreadminphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-core/admin/bp-core-admin.php (3357 => 3358)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-core/admin/bp-core-admin.php        2010-11-05 21:37:15 UTC (rev 3357)
+++ trunk/bp-core/admin/bp-core-admin.php        2010-11-05 21:44:38 UTC (rev 3358)
</span><span class="lines">@@ -198,7 +198,7 @@
</span><span class="cx">                                         &lt;/td&gt;
</span><span class="cx">                                 &lt;/tr&gt;
</span><span class="cx">                                 &lt;?php endif; ?&gt;
</span><del>-                                &lt;?php if ( file_exists( BP_PLUGIN_DIR . '/bp-blogs.php') &amp;&amp; bp_core_is_multisite() ) : ?&gt;
</del><ins>+                                &lt;?php if ( file_exists( BP_PLUGIN_DIR . '/bp-blogs.php') &amp;&amp; is_multisite() ) : ?&gt;
</ins><span class="cx">                                 &lt;tr&gt;
</span><span class="cx">                                         &lt;td&gt;&lt;h3&gt;&lt;?php _e( 'Blog Tracking', 'buddypress' ) ?&gt;&lt;/h3&gt;&lt;p&gt;&lt;?php _e( 'Tracks blogs, blog posts and blogs comments for a user across a WPMU installation.', 'buddypress' ) ?&gt;&lt;/p&gt;&lt;/td&gt;
</span><span class="cx">                                         &lt;td&gt;
</span></span></pre></div>
<a id="trunkbpcoreadminbpcoreupgradephp"></a>
<div class="modfile"><h4>Modified: trunk/bp-core/admin/bp-core-upgrade.php (3357 => 3358)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-core/admin/bp-core-upgrade.php        2010-11-05 21:37:15 UTC (rev 3357)
+++ trunk/bp-core/admin/bp-core-upgrade.php        2010-11-05 21:44:38 UTC (rev 3358)
</span><span class="lines">@@ -236,7 +236,7 @@
</span><span class="cx">                         &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> 
</span><del>-                        &lt;?php if ( bp_core_is_multisite() ) : ?&gt;
</del><ins>+                        &lt;?php if ( is_multisite() ) : ?&gt;
</ins><span class="cx">                         &lt;div class=&quot;component&quot;&gt;
</span><span class="cx">                                 &lt;h5&gt;&lt;?php _e( &quot;Blog Tracking&quot;, 'buddypress' ) ?&gt;&lt;/h5&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -413,7 +413,7 @@
</span><span class="cx">                         &lt;/tr&gt;
</span><span class="cx">                         &lt;?php endif; ?&gt;
</span><span class="cx"> 
</span><del>-                        &lt;?php if ( bp_core_is_multisite() &amp;&amp; !isset( $disabled_components['bp-blogs.php'] ) ) : ?&gt;
</del><ins>+                        &lt;?php if ( is_multisite() &amp;&amp; !isset( $disabled_components['bp-blogs.php'] ) ) : ?&gt;
</ins><span class="cx">                         &lt;tr valign=&quot;top&quot;&gt;
</span><span class="cx">                                 &lt;th scope=&quot;row&quot;&gt;
</span><span class="cx">                                         &lt;h5&gt;&lt;?php _e( 'Blogs', 'buddypress' ) ?&gt;&lt;/h5&gt;
</span><span class="lines">@@ -913,7 +913,7 @@
</span><span class="cx">                 bp_core_install_extended_profiles();
</span><span class="cx"> 
</span><span class="cx">         /* Only install blog tables if this is a multisite installation */
</span><del>-        if ( bp_core_is_multisite() &amp;&amp; empty( $disabled['bp-blogs.php'] ) )
</del><ins>+        if ( is_multisite() &amp;&amp; empty( $disabled['bp-blogs.php'] ) )
</ins><span class="cx">                 bp_core_install_blog_tracking();
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -938,12 +938,12 @@
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         // On first installation - record all existing blogs in the system.
</span><del>-        if ( !(int)$bp-&gt;site_options['bp-blogs-first-install'] &amp;&amp; bp_core_is_multisite() ) {
</del><ins>+        if ( !(int)$bp-&gt;site_options['bp-blogs-first-install'] &amp;&amp; is_multisite() ) {
</ins><span class="cx">                 bp_blogs_record_existing_blogs();
</span><span class="cx">                 add_site_option( 'bp-blogs-first-install', 1 );
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        if ( bp_core_is_multisite() )
</del><ins>+        if ( is_multisite() )
</ins><span class="cx">                 bp_core_add_illegal_names();
</span><span class="cx"> 
</span><span class="cx">         /* Upgrade and remove the message threads table if it exists */
</span></span></pre></div>
<a id="trunkbpcorebpcoreadminbarphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-core/bp-core-adminbar.php (3357 => 3358)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-core/bp-core-adminbar.php        2010-11-05 21:37:15 UTC (rev 3357)
+++ trunk/bp-core/bp-core-adminbar.php        2010-11-05 21:44:38 UTC (rev 3358)
</span><span class="lines">@@ -227,7 +227,7 @@
</span><span class="cx">                         &lt;li class=&quot;alt&quot;&gt;&lt;a href=&quot;&lt;?php echo $bp-&gt;root_domain . '/' . $bp-&gt;groups-&gt;slug . '/?random-group' ?&gt;&quot;&gt;&lt;?php _e( 'Random Group', 'buddypress' ) ?&gt;&lt;/a&gt;&lt;/li&gt;
</span><span class="cx">                         &lt;?php endif; ?&gt;
</span><span class="cx"> 
</span><del>-                        &lt;?php if ( bp_is_active( 'blogs' ) &amp;&amp; bp_core_is_multisite() ) : ?&gt;
</del><ins>+                        &lt;?php if ( bp_is_active( 'blogs' ) &amp;&amp; is_multisite() ) : ?&gt;
</ins><span class="cx">                         &lt;li&gt;&lt;a href=&quot;&lt;?php echo $bp-&gt;root_domain . '/' . $bp-&gt;blogs-&gt;slug . '/?random-blog' ?&gt;&quot;&gt;&lt;?php _e( 'Random Blog', 'buddypress' ) ?&gt;&lt;/a&gt;&lt;/li&gt;
</span><span class="cx"> 
</span><span class="cx">                         &lt;?php endif; ?&gt;
</span><span class="lines">@@ -242,12 +242,12 @@
</span><span class="cx"> add_action( 'bp_adminbar_menus', 'bp_adminbar_login_menu', 2 );
</span><span class="cx"> add_action( 'bp_adminbar_menus', 'bp_adminbar_account_menu', 4 );
</span><span class="cx"> 
</span><del>-if ( bp_core_is_multisite() )
</del><ins>+if ( is_multisite() )
</ins><span class="cx">         add_action( 'bp_adminbar_menus', 'bp_adminbar_blogs_menu', 6 );
</span><span class="cx"> 
</span><span class="cx"> add_action( 'bp_adminbar_menus', 'bp_adminbar_notifications_menu', 8 );
</span><span class="cx"> 
</span><del>-if ( bp_core_is_multisite() )
</del><ins>+if ( is_multisite() )
</ins><span class="cx">         add_action( 'bp_adminbar_menus', 'bp_adminbar_authors_menu', 12 );
</span><span class="cx"> 
</span><span class="cx"> add_action( 'bp_adminbar_menus', 'bp_adminbar_random_menu', 100 );
</span></span></pre></div>
<a id="trunkbpcorebpcoreavatarsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-core/bp-core-avatars.php (3357 => 3358)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-core/bp-core-avatars.php        2010-11-05 21:37:15 UTC (rev 3357)
+++ trunk/bp-core/bp-core-avatars.php        2010-11-05 21:44:38 UTC (rev 3358)
</span><span class="lines">@@ -544,7 +544,7 @@
</span><span class="cx">         $upload_dir = wp_upload_dir();
</span><span class="cx"> 
</span><span class="cx">         // If multisite, and current blog does not match root blog, make adjustments
</span><del>-        if ( bp_core_is_multisite() &amp;&amp; BP_ROOT_BLOG != $current_blog-&gt;blog_id )
</del><ins>+        if ( is_multisite() &amp;&amp; BP_ROOT_BLOG != $current_blog-&gt;blog_id )
</ins><span class="cx">                 $upload_dir['basedir'] = get_blog_option( BP_ROOT_BLOG, 'upload_path' );
</span><span class="cx"> 
</span><span class="cx">         return apply_filters( 'bp_core_avatar_upload_path', $upload_dir['basedir'] );
</span><span class="lines">@@ -566,7 +566,7 @@
</span><span class="cx">         $upload_dir = wp_upload_dir();
</span><span class="cx"> 
</span><span class="cx">         // If multisite, and current blog does not match root blog, make adjustments
</span><del>-        if ( bp_core_is_multisite() &amp;&amp; BP_ROOT_BLOG != $current_blog-&gt;blog_id )
</del><ins>+        if ( is_multisite() &amp;&amp; BP_ROOT_BLOG != $current_blog-&gt;blog_id )
</ins><span class="cx">                 $upload_dir['baseurl'] = str_replace( get_home_url( $current_blog-&gt;blog_id ) , get_home_url( BP_ROOT_BLOG ), $upload_dir['baseurl'] );
</span><span class="cx"> 
</span><span class="cx">         return apply_filters( 'bp_core_avatar_url', $upload_dir['baseurl'] );
</span></span></pre></div>
<a id="trunkbpcorebpcorecatchuriphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-core/bp-core-catchuri.php (3357 => 3358)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-core/bp-core-catchuri.php        2010-11-05 21:37:15 UTC (rev 3357)
+++ trunk/bp-core/bp-core-catchuri.php        2010-11-05 21:44:38 UTC (rev 3358)
</span><span class="lines">@@ -36,7 +36,7 @@
</span><span class="cx">         if ( empty( $bp_pages ) )
</span><span class="cx">                 $bp_pages = bp_core_get_page_names();
</span><span class="cx"> 
</span><del>-        if ( !defined( 'BP_ENABLE_MULTIBLOG' ) &amp;&amp; bp_core_is_multisite() ) {
</del><ins>+        if ( !defined( 'BP_ENABLE_MULTIBLOG' ) &amp;&amp; is_multisite() ) {
</ins><span class="cx">                 /* Only catch URI's on the root blog if we are not running BP on multiple blogs */
</span><span class="cx">                 if ( BP_ROOT_BLOG != (int) $current_blog-&gt;blog_id )
</span><span class="cx">                         return false;
</span></span></pre></div>
<a id="trunkbpcorebpcorecssjsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-core/bp-core-cssjs.php (3357 => 3358)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-core/bp-core-cssjs.php        2010-11-05 21:37:15 UTC (rev 3357)
+++ trunk/bp-core/bp-core-cssjs.php        2010-11-05 21:44:38 UTC (rev 3358)
</span><span class="lines">@@ -14,7 +14,7 @@
</span><span class="cx">         if ( defined( 'BP_DISABLE_ADMIN_BAR' ) )
</span><span class="cx">                 return false;
</span><span class="cx"> 
</span><del>-        if ( ( bp_core_is_multisite() &amp;&amp; $current_blog-&gt;blog_id != BP_ROOT_BLOG ) || is_admin() ) {
</del><ins>+        if ( ( is_multisite() &amp;&amp; $current_blog-&gt;blog_id != BP_ROOT_BLOG ) || is_admin() ) {
</ins><span class="cx">                 $stylesheet = get_blog_option( BP_ROOT_BLOG, 'stylesheet' );
</span><span class="cx"> 
</span><span class="cx">                 if ( file_exists( WP_CONTENT_DIR . '/themes/' . $stylesheet . '/_inc/css/adminbar.css' ) )
</span><span class="lines">@@ -49,7 +49,7 @@
</span><span class="cx"> function bp_core_confirmation_js() {
</span><span class="cx">         global $current_blog;
</span><span class="cx"> 
</span><del>-        if ( bp_core_is_multisite() &amp;&amp; $current_blog-&gt;blog_id != BP_ROOT_BLOG )
</del><ins>+        if ( is_multisite() &amp;&amp; $current_blog-&gt;blog_id != BP_ROOT_BLOG )
</ins><span class="cx">                 return false;
</span><span class="cx"> ?&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkbpcorebpcorefiltersphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-core/bp-core-filters.php (3357 => 3358)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-core/bp-core-filters.php        2010-11-05 21:37:15 UTC (rev 3357)
+++ trunk/bp-core/bp-core-filters.php        2010-11-05 21:44:38 UTC (rev 3358)
</span><span class="lines">@@ -123,7 +123,7 @@
</span><span class="cx"> function bp_core_login_redirect( $redirect_to ) {
</span><span class="cx">         global $bp, $current_blog;
</span><span class="cx"> 
</span><del>-        if ( bp_core_is_multisite() &amp;&amp; $current_blog-&gt;blog_id != BP_ROOT_BLOG )
</del><ins>+        if ( is_multisite() &amp;&amp; $current_blog-&gt;blog_id != BP_ROOT_BLOG )
</ins><span class="cx">                 return $redirect_to;
</span><span class="cx"> 
</span><span class="cx">         if ( !empty( $_REQUEST['redirect_to'] ) || strpos( $_REQUEST['redirect_to'], 'wp-admin' ) )
</span></span></pre></div>
<a id="trunkbpcorebpcoresignupphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-core/bp-core-signup.php (3357 => 3358)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-core/bp-core-signup.php        2010-11-05 21:37:15 UTC (rev 3357)
+++ trunk/bp-core/bp-core-signup.php        2010-11-05 21:44:38 UTC (rev 3358)
</span><span class="lines">@@ -138,7 +138,7 @@
</span><span class="cx">                                 $usermeta = apply_filters( 'bp_signup_usermeta', $usermeta );
</span><span class="cx"> 
</span><span class="cx">                                 /* Finally, sign up the user and/or blog */
</span><del>-                                if ( isset( $_POST['signup_with_blog'] ) &amp;&amp; bp_core_is_multisite() )
</del><ins>+                                if ( isset( $_POST['signup_with_blog'] ) &amp;&amp; is_multisite() )
</ins><span class="cx">                                         bp_core_signup_blog( $blog_details['domain'], $blog_details['path'], $blog_details['blog_title'], $_POST['signup_username'], $_POST['signup_email'], $usermeta );
</span><span class="cx">                                 else {
</span><span class="cx">                                         bp_core_signup_user( $_POST['signup_username'], $_POST['signup_password'], $_POST['signup_email'], $usermeta );
</span><span class="lines">@@ -162,7 +162,7 @@
</span><span class="cx"> 
</span><span class="cx">                 $bp-&gt;signup-&gt;step = 'completed-confirmation';
</span><span class="cx"> 
</span><del>-                if ( bp_core_is_multisite() ) {
</del><ins>+                if ( is_multisite() ) {
</ins><span class="cx">                         /* Get the activation key */
</span><span class="cx">                         if ( !$bp-&gt;signup-&gt;key = $wpdb-&gt;get_var( $wpdb-&gt;prepare( &quot;SELECT activation_key FROM {$wpdb-&gt;signups} WHERE user_login = %s AND user_email = %s&quot;, $_POST[ 'signup_username' ], $_POST[ 'signup_email' ] ) ) ) {
</span><span class="cx">                                 bp_core_add_message( __( 'There was a problem uploading your avatar, please try uploading it again', 'buddypress' ) );
</span><span class="lines">@@ -224,7 +224,7 @@
</span><span class="cx">                 }
</span><span class="cx"> 
</span><span class="cx">                 /* Check for an uploaded avatar and move that to the correct user folder */
</span><del>-                if ( bp_core_is_multisite() )
</del><ins>+                if ( is_multisite() )
</ins><span class="cx">                         $hashed_key = wp_hash( $_GET['key'] );
</span><span class="cx">                 else
</span><span class="cx">                         $hashed_key = wp_hash( $user );
</span><span class="lines">@@ -368,7 +368,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> function bp_core_validate_blog_signup( $blog_url, $blog_title ) {
</span><del>-        if ( !bp_core_is_multisite() || !function_exists( 'wpmu_validate_blog_signup' ) )
</del><ins>+        if ( !is_multisite() || !function_exists( 'wpmu_validate_blog_signup' ) )
</ins><span class="cx">                 return false;
</span><span class="cx"> 
</span><span class="cx">         return apply_filters( 'bp_core_validate_blog_signup', wpmu_validate_blog_signup( $blog_url, $blog_title ) );
</span><span class="lines">@@ -378,7 +378,7 @@
</span><span class="cx">         global $bp, $wpdb;
</span><span class="cx"> 
</span><span class="cx">         /* Multisite installs have their own install procedure */
</span><del>-        if ( bp_core_is_multisite() ) {
</del><ins>+        if ( is_multisite() ) {
</ins><span class="cx">                 wpmu_signup_user( $user_login, $user_email, $usermeta );
</span><span class="cx"> 
</span><span class="cx">         } else {
</span><span class="lines">@@ -422,7 +422,7 @@
</span><span class="cx">          * To disable sending activation emails you can user the filter 'bp_core_signup_send_activation_key' and return false.
</span><span class="cx">          */
</span><span class="cx">         if ( apply_filters( 'bp_core_signup_send_activation_key', true ) ) {
</span><del>-                if ( !bp_core_is_multisite() ) {
</del><ins>+                if ( !is_multisite() ) {
</ins><span class="cx">                         $activation_key = wp_hash( $user_id );
</span><span class="cx">                         update_user_meta( $user_id, 'activation_key', $activation_key );
</span><span class="cx">                         bp_core_signup_send_validation_email( $user_id, $user_email, $activation_key );
</span><span class="lines">@@ -435,7 +435,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> function bp_core_signup_blog( $blog_domain, $blog_path, $blog_title, $user_name, $user_email, $usermeta ) {
</span><del>-        if ( !bp_core_is_multisite() || !function_exists( 'wpmu_signup_blog' ) )
</del><ins>+        if ( !is_multisite() || !function_exists( 'wpmu_signup_blog' ) )
</ins><span class="cx">                 return false;
</span><span class="cx"> 
</span><span class="cx">         return apply_filters( 'bp_core_signup_blog', wpmu_signup_blog( $blog_domain, $blog_path, $blog_title, $user_name, $user_email, $usermeta ) );
</span><span class="lines">@@ -447,7 +447,7 @@
</span><span class="cx">         $user = false;
</span><span class="cx"> 
</span><span class="cx">         /* Multisite installs have their own activation routine */
</span><del>-        if ( bp_core_is_multisite() ) {
</del><ins>+        if ( is_multisite() ) {
</ins><span class="cx">                 $user = wpmu_activate_signup( $key );
</span><span class="cx"> 
</span><span class="cx">                 /* If there was errors, add a message and redirect */
</span><span class="lines">@@ -497,7 +497,7 @@
</span><span class="cx">         update_user_meta( $user_id, 'last_activity', bp_core_current_time() );
</span><span class="cx"> 
</span><span class="cx">         /* Set the password on multisite installs */
</span><del>-        if ( bp_core_is_multisite() &amp;&amp; !empty( $user['meta']['password'] ) )
</del><ins>+        if ( is_multisite() &amp;&amp; !empty( $user['meta']['password'] ) )
</ins><span class="cx">                 $wpdb-&gt;query( $wpdb-&gt;prepare( &quot;UPDATE $wpdb-&gt;users SET user_pass = %s WHERE ID = %d&quot;, $user['meta']['password'], $user_id ) );
</span><span class="cx"> 
</span><span class="cx">         /* Delete the total member cache */
</span><span class="lines">@@ -617,7 +617,7 @@
</span><span class="cx">         if ( locate_template( array( 'registration/register.php' ), false ) || locate_template( array( 'register.php' ), false ) )
</span><span class="cx">                 bp_core_redirect( bp_get_root_domain() . '/' . BP_REGISTER_SLUG . '/' );
</span><span class="cx"> }
</span><del>-if ( bp_core_is_multisite() )
</del><ins>+if ( is_multisite() )
</ins><span class="cx">         add_action( 'wp', 'bp_core_wpsignup_redirect' );
</span><span class="cx"> else
</span><span class="cx">         add_action( 'init', 'bp_core_wpsignup_redirect' );
</span></span></pre></div>
<a id="trunkbpcorebpcoretemplatetagsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-core/bp-core-templatetags.php (3357 => 3358)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-core/bp-core-templatetags.php        2010-11-05 21:37:15 UTC (rev 3357)
+++ trunk/bp-core/bp-core-templatetags.php        2010-11-05 21:44:38 UTC (rev 3358)
</span><span class="lines">@@ -978,7 +978,7 @@
</span><span class="cx">  *
</span><span class="cx">  * @global array $bp
</span><span class="cx">  * @uses function_exists
</span><del>- * @uses bp_core_is_multisite()
</del><ins>+ * @uses is_multisite()
</ins><span class="cx">  * @return bool Filterable result
</span><span class="cx">  */
</span><span class="cx"> function bp_search_form_enabled() {
</span><span class="lines">@@ -986,7 +986,7 @@
</span><span class="cx"> 
</span><span class="cx">         if ( function_exists( 'xprofile_install' )
</span><span class="cx">                  || function_exists( 'groups_install' )
</span><del>-                 || ( function_exists( 'bp_blogs_install' ) &amp;&amp; bp_core_is_multisite() )
</del><ins>+                 || ( function_exists( 'bp_blogs_install' ) &amp;&amp; is_multisite() )
</ins><span class="cx">                  || ( function_exists( 'bp_forums_setup' ) &amp;&amp; !(int)$bp-&gt;site_options['bp-disable-forum-directory'] )
</span><span class="cx">                 ) {
</span><span class="cx">                 $search_enabled = true;
</span><span class="lines">@@ -1024,7 +1024,7 @@
</span><span class="cx">         if ( function_exists( 'bp_forums_is_installed_correctly' ) &amp;&amp; bp_forums_is_installed_correctly() &amp;&amp; !(int) $bp-&gt;site_options['bp-disable-forum-directory'] )
</span><span class="cx">                 $options['forums'] = __( 'Forums', 'buddypress' );
</span><span class="cx"> 
</span><del>-        if ( bp_is_active( 'blogs' ) &amp;&amp; bp_core_is_multisite() )
</del><ins>+        if ( bp_is_active( 'blogs' ) &amp;&amp; is_multisite() )
</ins><span class="cx">                 $options['blogs'] = __( 'Blogs', 'buddypress' );
</span><span class="cx"> 
</span><span class="cx">         // Eventually this won't be needed and a page will be built to integrate all search results.
</span><span class="lines">@@ -1242,7 +1242,7 @@
</span><span class="cx">         function bp_get_signup_allowed() {
</span><span class="cx">                 global $bp;
</span><span class="cx"> 
</span><del>-                if ( bp_core_is_multisite() ) {
</del><ins>+                if ( is_multisite() ) {
</ins><span class="cx">                         if ( in_array( $bp-&gt;site_options['registration'], array( 'all', 'user' ) ) )
</span><span class="cx">                                 return true;
</span><span class="cx">                 } else {
</span><span class="lines">@@ -1258,7 +1258,7 @@
</span><span class="cx">         function bp_get_blog_signup_allowed() {
</span><span class="cx">                 global $bp;
</span><span class="cx"> 
</span><del>-                if ( !bp_core_is_multisite() )
</del><ins>+                if ( !is_multisite() )
</ins><span class="cx">                         return false;
</span><span class="cx"> 
</span><span class="cx">                 $status = $bp-&gt;site_options['registration'];
</span></span></pre></div>
<a id="trunkbpcorebpcorewpabstractionphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-core/bp-core-wpabstraction.php (3357 => 3358)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-core/bp-core-wpabstraction.php        2010-11-05 21:37:15 UTC (rev 3357)
+++ trunk/bp-core/bp-core-wpabstraction.php        2010-11-05 21:44:38 UTC (rev 3358)
</span><span class="lines">@@ -9,12 +9,22 @@
</span><span class="cx">  * the 3.0 WordPress version merge takes place.
</span><span class="cx">  */
</span><span class="cx"> 
</span><del>-if ( !bp_core_is_multisite() ) {
</del><ins>+if ( !is_multisite() ) {
</ins><span class="cx">         $wpdb-&gt;base_prefix = $wpdb-&gt;prefix;
</span><span class="cx">         $wpdb-&gt;blogid = 1;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+/**
+ * bp_core_is_multisite()
+ *
+ * This function originally served as a wrapper when WordPress and WordPress MU were separate entities.
+ * Use is_multisite() instead.
+ *
+ * @deprecated 1.3
+ * @deprecated Use is_multisite()
+ */
</ins><span class="cx"> function bp_core_is_multisite() {
</span><ins>+        _deprecated_function( __FUNCTION__, '1.3', 'is_multisite()' );
</ins><span class="cx">         if ( function_exists( 'is_multisite' ) )
</span><span class="cx">                 return is_multisite();
</span><span class="cx"> 
</span><span class="lines">@@ -38,7 +48,7 @@
</span><span class="cx"> function bp_core_is_main_site( $blog_id = '' ) {
</span><span class="cx">         global $current_site, $current_blog;
</span><span class="cx"> 
</span><del>-        if ( !bp_core_is_multisite() )
</del><ins>+        if ( !is_multisite() )
</ins><span class="cx">                 return true;
</span><span class="cx"> 
</span><span class="cx">         if ( empty( $blog_id ) )
</span><span class="lines">@@ -48,7 +58,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> function bp_core_get_status_sql( $prefix = false ) {
</span><del>-        if ( !bp_core_is_multisite() )
</del><ins>+        if ( !is_multisite() )
</ins><span class="cx">                 return &quot;{$prefix}user_status = 0&quot;;
</span><span class="cx">         else
</span><span class="cx">                 return &quot;{$prefix}spam = 0 AND {$prefix}deleted = 0 AND {$prefix}user_status = 0&quot;;
</span></span></pre></div>
<a id="trunkbpcorephp"></a>
<div class="modfile"><h4>Modified: trunk/bp-core.php (3357 => 3358)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-core.php        2010-11-05 21:37:15 UTC (rev 3357)
+++ trunk/bp-core.php        2010-11-05 21:44:38 UTC (rev 3358)
</span><span class="lines">@@ -429,7 +429,7 @@
</span><span class="cx">                 check_admin_referer( 'mark-unmark-spammer' );
</span><span class="cx"> 
</span><span class="cx">                 /* Get the functions file */
</span><del>-                if ( bp_core_is_multisite() )
</del><ins>+                if ( is_multisite() )
</ins><span class="cx">                         require_once( ABSPATH . 'wp-admin/includes/ms.php' );
</span><span class="cx"> 
</span><span class="cx">                 if ( 'mark-spammer' == $bp-&gt;current_action )
</span><span class="lines">@@ -453,7 +453,7 @@
</span><span class="cx">                 }
</span><span class="cx"> 
</span><span class="cx">                 /* Finally, mark this user as a spammer */
</span><del>-                if ( bp_core_is_multisite() )
</del><ins>+                if ( is_multisite() )
</ins><span class="cx">                         $wpdb-&gt;update( $wpdb-&gt;users, array( 'spam' =&gt; $is_spam ), array( 'ID' =&gt; $bp-&gt;displayed_user-&gt;id ) );
</span><span class="cx"> 
</span><span class="cx">                 $wpdb-&gt;update( $wpdb-&gt;users, array( 'user_status' =&gt; $is_spam ), array( 'ID' =&gt; $bp-&gt;displayed_user-&gt;id ) );
</span><span class="lines">@@ -1235,7 +1235,7 @@
</span><span class="cx"> function bp_core_is_user_spammer( $user_id ) {
</span><span class="cx">         global $wpdb;
</span><span class="cx"> 
</span><del>-        if ( bp_core_is_multisite() )
</del><ins>+        if ( is_multisite() )
</ins><span class="cx">                 $is_spammer = (int) $wpdb-&gt;get_var( $wpdb-&gt;prepare( &quot;SELECT spam FROM &quot; . CUSTOM_USER_TABLE . &quot; WHERE ID = %d&quot;, $user_id ) );
</span><span class="cx">         else
</span><span class="cx">                 $is_spammer = (int) $wpdb-&gt;get_var( $wpdb-&gt;prepare( &quot;SELECT user_status FROM &quot; . CUSTOM_USER_TABLE . &quot; WHERE ID = %d&quot;, $user_id ) );
</span><span class="lines">@@ -1528,7 +1528,7 @@
</span><span class="cx"> function bp_core_get_site_path() {
</span><span class="cx">         global $bp, $current_site;
</span><span class="cx"> 
</span><del>-        if ( bp_core_is_multisite() )
</del><ins>+        if ( is_multisite() )
</ins><span class="cx">                 $site_path = $current_site-&gt;path;
</span><span class="cx">         else {
</span><span class="cx">                 $site_path = (array) explode( '/', site_url() );
</span><span class="lines">@@ -1586,7 +1586,7 @@
</span><span class="cx"> 
</span><span class="cx">         $meta_keys = &quot;'&quot; . implode( &quot;','&quot;, (array)$options ) .&quot;'&quot;;
</span><span class="cx"> 
</span><del>-        if ( bp_core_is_multisite() )
</del><ins>+        if ( is_multisite() )
</ins><span class="cx">                 $meta = $wpdb-&gt;get_results( &quot;SELECT meta_key AS name, meta_value AS value FROM {$wpdb-&gt;sitemeta} WHERE meta_key IN ({$meta_keys}) AND site_id = {$wpdb-&gt;siteid}&quot; );
</span><span class="cx">         else
</span><span class="cx">                 $meta = $wpdb-&gt;get_results( &quot;SELECT option_name AS name, option_value AS value FROM {$wpdb-&gt;options} WHERE option_name IN ({$meta_keys})&quot; );
</span><span class="lines">@@ -1693,7 +1693,7 @@
</span><span class="cx">                 return false;
</span><span class="cx"> 
</span><span class="cx">         /* Specifically handle multi-site environment */
</span><del>-        if ( bp_core_is_multisite() ) {
</del><ins>+        if ( is_multisite() ) {
</ins><span class="cx">                 if ( $wp_version &gt;= '3.0' )
</span><span class="cx">                         require_once( ABSPATH . '/wp-admin/includes/ms.php' );
</span><span class="cx">                 else
</span><span class="lines">@@ -1885,7 +1885,7 @@
</span><span class="cx"> 
</span><span class="cx">         $user = get_userdatabylogin( $username );
</span><span class="cx"> 
</span><del>-        if ( ( bp_core_is_multisite() &amp;&amp; (int)$user-&gt;spam ) || 1 == (int)$user-&gt;user_status )
</del><ins>+        if ( ( is_multisite() &amp;&amp; (int)$user-&gt;spam ) || 1 == (int)$user-&gt;user_status )
</ins><span class="cx">                 bp_core_redirect( $bp-&gt;root_domain );
</span><span class="cx">         else
</span><span class="cx">                 return $auth_obj;
</span></span></pre></div>
<a id="trunkbpforumsbpforumsadminphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-forums/bp-forums-admin.php (3357 => 3358)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-forums/bp-forums-admin.php        2010-11-05 21:37:15 UTC (rev 3357)
+++ trunk/bp-forums/bp-forums-admin.php        2010-11-05 21:44:38 UTC (rev 3358)
</span><span class="lines">@@ -158,7 +158,7 @@
</span><span class="cx">         $file .= &quot;\n\n&quot; . '$bb-&gt;uri = \'' . BP_PLUGIN_URL . '/bp-forums/bbpress/\';';
</span><span class="cx">         $file .= &quot;\n&quot; .   '$bb-&gt;name = \'' . get_blog_option( BP_ROOT_BLOG, 'name' ) . ' ' . __( 'Forums', 'buddypress' ) . '\';';
</span><span class="cx"> 
</span><del>-        if ( bp_core_is_multisite() )
</del><ins>+        if ( is_multisite() )
</ins><span class="cx">                 $file .= &quot;\n&quot; .   '$bb-&gt;wordpress_mu_primary_blog_id = ' . BP_ROOT_BLOG . ';';
</span><span class="cx"> 
</span><span class="cx">         if ( defined( 'AUTH_SALT' ) )
</span></span></pre>
</div>
</div>

</body>
</html>