<!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] [3503] trunk:
  Correct links and site title when BP-Default is used on hosted sites in a multisite configuration
 .</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd>3503</dd>
<dt>Author</dt> <dd>djpaul</dd>
<dt>Date</dt> <dd>2010-12-02 17:08:38 +0000 (Thu, 02 Dec 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>Correct links and site title when BP-Default is used on hosted sites in a multisite configuration. Fixes #1972, #2061, #2653.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkbpactivityfeedsbpactivityfavoritesfeedphp">trunk/bp-activity/feeds/bp-activity-favorites-feed.php</a></li>
<li><a href="#trunkbpactivityfeedsbpactivityfriendsfeedphp">trunk/bp-activity/feeds/bp-activity-friends-feed.php</a></li>
<li><a href="#trunkbpactivityfeedsbpactivitygroupfeedphp">trunk/bp-activity/feeds/bp-activity-group-feed.php</a></li>
<li><a href="#trunkbpactivityfeedsbpactivitymentionsfeedphp">trunk/bp-activity/feeds/bp-activity-mentions-feed.php</a></li>
<li><a href="#trunkbpactivityfeedsbpactivitymygroupsfeedphp">trunk/bp-activity/feeds/bp-activity-mygroups-feed.php</a></li>
<li><a href="#trunkbpactivityfeedsbpactivitypersonalfeedphp">trunk/bp-activity/feeds/bp-activity-personal-feed.php</a></li>
<li><a href="#trunkbpactivityfeedsbpactivitysitewidefeedphp">trunk/bp-activity/feeds/bp-activity-sitewide-feed.php</a></li>
<li><a href="#trunkbpcorebpcoretemplatetagsphp">trunk/bp-core/bp-core-templatetags.php</a></li>
<li><a href="#trunkbpthemesbpdefaultfooterphp">trunk/bp-themes/bp-default/footer.php</a></li>
<li><a href="#trunkbpthemesbpdefaultheaderphp">trunk/bp-themes/bp-default/header.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkbpactivityfeedsbpactivityfavoritesfeedphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-activity/feeds/bp-activity-favorites-feed.php (3502 => 3503)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-activity/feeds/bp-activity-favorites-feed.php        2010-12-02 15:07:44 UTC (rev 3502)
+++ trunk/bp-activity/feeds/bp-activity-favorites-feed.php        2010-12-02 17:08:38 UTC (rev 3503)
</span><span class="lines">@@ -18,7 +18,7 @@
</span><span class="cx"> &gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;channel&gt;
</span><del>-        &lt;title&gt;&lt;?php echo bp_site_name() ?&gt; | &lt;?php echo $bp-&gt;displayed_user-&gt;fullname; ?&gt; | &lt;?php _e( 'Favorite Activity', 'buddypress' ) ?&gt;&lt;/title&gt;
</del><ins>+        &lt;title&gt;&lt;?php bp_site_name() ?&gt; | &lt;?php echo $bp-&gt;displayed_user-&gt;fullname; ?&gt; | &lt;?php _e( 'Favorite Activity', 'buddypress' ) ?&gt;&lt;/title&gt;
</ins><span class="cx">         &lt;atom:link href=&quot;&lt;?php self_link(); ?&gt;&quot; rel=&quot;self&quot; type=&quot;application/rss+xml&quot; /&gt;
</span><span class="cx">         &lt;link&gt;&lt;?php echo site_url( BP_ACTIVITY_SLUG . '/#my-favorites/' ) ?&gt;&lt;/link&gt;
</span><span class="cx">         &lt;description&gt;&lt;?php echo $bp-&gt;displayed_user-&gt;fullname; ?&gt; - &lt;?php _e( 'Favorite Activity', 'buddypress' ) ?&gt;&lt;/description&gt;
</span></span></pre></div>
<a id="trunkbpactivityfeedsbpactivityfriendsfeedphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-activity/feeds/bp-activity-friends-feed.php (3502 => 3503)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-activity/feeds/bp-activity-friends-feed.php        2010-12-02 15:07:44 UTC (rev 3502)
+++ trunk/bp-activity/feeds/bp-activity-friends-feed.php        2010-12-02 17:08:38 UTC (rev 3503)
</span><span class="lines">@@ -18,7 +18,7 @@
</span><span class="cx"> &gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;channel&gt;
</span><del>-        &lt;title&gt;&lt;?php echo bp_site_name() ?&gt; | &lt;?php echo $bp-&gt;displayed_user-&gt;fullname; ?&gt; | &lt;?php _e( 'Friends Activity', 'buddypress' ) ?&gt;&lt;/title&gt;
</del><ins>+        &lt;title&gt;&lt;?php bp_site_name() ?&gt; | &lt;?php echo $bp-&gt;displayed_user-&gt;fullname; ?&gt; | &lt;?php _e( 'Friends Activity', 'buddypress' ) ?&gt;&lt;/title&gt;
</ins><span class="cx">         &lt;atom:link href=&quot;&lt;?php self_link(); ?&gt;&quot; rel=&quot;self&quot; type=&quot;application/rss+xml&quot; /&gt;
</span><span class="cx">         &lt;link&gt;&lt;?php echo $bp-&gt;displayed_user-&gt;domain . $bp-&gt;activity-&gt;slug . '/my-friends/feed' ?&gt;&lt;/link&gt;
</span><span class="cx">         &lt;description&gt;&lt;?php printf( __( '%s - Friends Activity Feed', 'buddypress' ), $bp-&gt;displayed_user-&gt;fullname ) ?&gt;&lt;/description&gt;
</span></span></pre></div>
<a id="trunkbpactivityfeedsbpactivitygroupfeedphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-activity/feeds/bp-activity-group-feed.php (3502 => 3503)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-activity/feeds/bp-activity-group-feed.php        2010-12-02 15:07:44 UTC (rev 3502)
+++ trunk/bp-activity/feeds/bp-activity-group-feed.php        2010-12-02 17:08:38 UTC (rev 3503)
</span><span class="lines">@@ -18,7 +18,7 @@
</span><span class="cx"> &gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;channel&gt;
</span><del>-        &lt;title&gt;&lt;?php echo bp_site_name() ?&gt; | &lt;?php echo $bp-&gt;groups-&gt;current_group-&gt;name ?&gt; | &lt;?php _e( 'Group Activity', 'buddypress' ) ?&gt;&lt;/title&gt;
</del><ins>+        &lt;title&gt;&lt;?php bp_site_name() ?&gt; | &lt;?php echo $bp-&gt;groups-&gt;current_group-&gt;name ?&gt; | &lt;?php _e( 'Group Activity', 'buddypress' ) ?&gt;&lt;/title&gt;
</ins><span class="cx">         &lt;atom:link href=&quot;&lt;?php self_link(); ?&gt;&quot; rel=&quot;self&quot; type=&quot;application/rss+xml&quot; /&gt;
</span><span class="cx">         &lt;link&gt;&lt;?php echo bp_get_group_permalink( $bp-&gt;groups-&gt;current_group ) . $bp-&gt;activity-&gt;slug . '/feed' ?&gt;&lt;/link&gt;
</span><span class="cx">         &lt;description&gt;&lt;?php printf( __( '%s - Group Activity Feed', 'buddypress' ), $bp-&gt;groups-&gt;current_group-&gt;name  ) ?&gt;&lt;/description&gt;
</span></span></pre></div>
<a id="trunkbpactivityfeedsbpactivitymentionsfeedphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-activity/feeds/bp-activity-mentions-feed.php (3502 => 3503)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-activity/feeds/bp-activity-mentions-feed.php        2010-12-02 15:07:44 UTC (rev 3502)
+++ trunk/bp-activity/feeds/bp-activity-mentions-feed.php        2010-12-02 17:08:38 UTC (rev 3503)
</span><span class="lines">@@ -18,7 +18,7 @@
</span><span class="cx"> &gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;channel&gt;
</span><del>-        &lt;title&gt;&lt;?php echo bp_site_name() ?&gt; | &lt;?php echo $bp-&gt;displayed_user-&gt;fullname; ?&gt; | &lt;?php _e( 'Mentions', 'buddypress' ) ?&gt;&lt;/title&gt;
</del><ins>+        &lt;title&gt;&lt;?php bp_site_name() ?&gt; | &lt;?php echo $bp-&gt;displayed_user-&gt;fullname; ?&gt; | &lt;?php _e( 'Mentions', 'buddypress' ) ?&gt;&lt;/title&gt;
</ins><span class="cx">         &lt;atom:link href=&quot;&lt;?php self_link(); ?&gt;&quot; rel=&quot;self&quot; type=&quot;application/rss+xml&quot; /&gt;
</span><span class="cx">         &lt;link&gt;&lt;?php echo site_url( BP_ACTIVITY_SLUG . '/#mentions/' ) ?&gt;&lt;/link&gt;
</span><span class="cx">         &lt;description&gt;&lt;?php echo $bp-&gt;displayed_user-&gt;fullname; ?&gt; - &lt;?php _e( 'Mentions', 'buddypress' ) ?&gt;&lt;/description&gt;
</span></span></pre></div>
<a id="trunkbpactivityfeedsbpactivitymygroupsfeedphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-activity/feeds/bp-activity-mygroups-feed.php (3502 => 3503)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-activity/feeds/bp-activity-mygroups-feed.php        2010-12-02 15:07:44 UTC (rev 3502)
+++ trunk/bp-activity/feeds/bp-activity-mygroups-feed.php        2010-12-02 17:08:38 UTC (rev 3503)
</span><span class="lines">@@ -18,7 +18,7 @@
</span><span class="cx"> &gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;channel&gt;
</span><del>-        &lt;title&gt;&lt;?php echo bp_site_name() ?&gt; | &lt;?php echo $bp-&gt;displayed_user-&gt;fullname; ?&gt; | &lt;?php _e( 'My Groups - Public Activity', 'buddypress' ) ?&gt;&lt;/title&gt;
</del><ins>+        &lt;title&gt;&lt;?php bp_site_name() ?&gt; | &lt;?php echo $bp-&gt;displayed_user-&gt;fullname; ?&gt; | &lt;?php _e( 'My Groups - Public Activity', 'buddypress' ) ?&gt;&lt;/title&gt;
</ins><span class="cx">         &lt;atom:link href=&quot;&lt;?php self_link(); ?&gt;&quot; rel=&quot;self&quot; type=&quot;application/rss+xml&quot; /&gt;
</span><span class="cx">         &lt;link&gt;&lt;?php echo site_url( BP_ACTIVITY_SLUG . '/#my-groups/' ) ?&gt;&lt;/link&gt;
</span><span class="cx">         &lt;description&gt;&lt;?php echo $bp-&gt;displayed_user-&gt;fullname; ?&gt; - &lt;?php _e( 'My Groups - Public Activity', 'buddypress' ) ?&gt;&lt;/description&gt;
</span></span></pre></div>
<a id="trunkbpactivityfeedsbpactivitypersonalfeedphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-activity/feeds/bp-activity-personal-feed.php (3502 => 3503)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-activity/feeds/bp-activity-personal-feed.php        2010-12-02 15:07:44 UTC (rev 3502)
+++ trunk/bp-activity/feeds/bp-activity-personal-feed.php        2010-12-02 17:08:38 UTC (rev 3503)
</span><span class="lines">@@ -18,7 +18,7 @@
</span><span class="cx"> &gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;channel&gt;
</span><del>-        &lt;title&gt;&lt;?php echo bp_site_name() ?&gt; | &lt;?php echo $bp-&gt;displayed_user-&gt;fullname; ?&gt; | &lt;?php _e( 'Activity', 'buddypress' ) ?&gt;&lt;/title&gt;
</del><ins>+        &lt;title&gt;&lt;?php bp_site_name() ?&gt; | &lt;?php echo $bp-&gt;displayed_user-&gt;fullname; ?&gt; | &lt;?php _e( 'Activity', 'buddypress' ) ?&gt;&lt;/title&gt;
</ins><span class="cx">         &lt;atom:link href=&quot;&lt;?php self_link(); ?&gt;&quot; rel=&quot;self&quot; type=&quot;application/rss+xml&quot; /&gt;
</span><span class="cx">         &lt;link&gt;&lt;?php echo $bp-&gt;displayed_user-&gt;domain . $bp-&gt;activity-&gt;slug . '/feed' ?&gt;&lt;/link&gt;
</span><span class="cx">         &lt;description&gt;&lt;?php printf( __( '%s - Activity Feed', 'buddypress' ), $bp-&gt;displayed_user-&gt;fullname ) ?&gt;&lt;/description&gt;
</span></span></pre></div>
<a id="trunkbpactivityfeedsbpactivitysitewidefeedphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-activity/feeds/bp-activity-sitewide-feed.php (3502 => 3503)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-activity/feeds/bp-activity-sitewide-feed.php        2010-12-02 15:07:44 UTC (rev 3502)
+++ trunk/bp-activity/feeds/bp-activity-sitewide-feed.php        2010-12-02 17:08:38 UTC (rev 3503)
</span><span class="lines">@@ -19,7 +19,7 @@
</span><span class="cx"> &gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;channel&gt;
</span><del>-        &lt;title&gt;&lt;?php echo bp_site_name() ?&gt; | &lt;?php _e( 'Site Wide Activity', 'buddypress' ) ?&gt;&lt;/title&gt;
</del><ins>+        &lt;title&gt;&lt;?php bp_site_name() ?&gt; | &lt;?php _e( 'Site Wide Activity', 'buddypress' ) ?&gt;&lt;/title&gt;
</ins><span class="cx">         &lt;atom:link href=&quot;&lt;?php self_link(); ?&gt;&quot; rel=&quot;self&quot; type=&quot;application/rss+xml&quot; /&gt;
</span><span class="cx">         &lt;link&gt;&lt;?php echo site_url() . '/' . $bp-&gt;activity-&gt;slug . '/feed' ?&gt;&lt;/link&gt;
</span><span class="cx">         &lt;description&gt;&lt;?php _e( 'Site Wide Activity Feed', 'buddypress' ) ?&gt;&lt;/description&gt;
</span></span></pre></div>
<a id="trunkbpcorebpcoretemplatetagsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-core/bp-core-templatetags.php (3502 => 3503)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-core/bp-core-templatetags.php        2010-12-02 15:07:44 UTC (rev 3502)
+++ trunk/bp-core/bp-core-templatetags.php        2010-12-02 17:08:38 UTC (rev 3503)
</span><span class="lines">@@ -743,7 +743,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> function bp_site_name() {
</span><del>-        echo apply_filters( 'bp_site_name', get_blog_option( BP_ROOT_BLOG, 'blogname' ) );
</del><ins>+        echo apply_filters( 'bp_site_name', get_bloginfo( 'name', 'display' ) );
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> function bp_core_get_wp_profile() {
</span><span class="lines">@@ -930,13 +930,7 @@
</span><span class="cx">                 $title = __( 'Create a Blog', 'buddypress' );
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        if ( defined( 'BP_ENABLE_MULTIBLOG' ) ) {
-                $blog_title = get_blog_option( $current_blog-&gt;blog_id, 'blogname' );
-        } else {
-                $blog_title = get_blog_option( BP_ROOT_BLOG, 'blogname' );
-        }
-
-        return apply_filters( 'bp_page_title', $blog_title . ' &amp;#124; ' . esc_attr( $title ), esc_attr( $title ) );
</del><ins>+        return apply_filters( 'bp_page_title', esc_attr( get_bloginfo( 'name', 'display' ) . ' &amp;#124; ' . $title ), esc_attr( $title ) );
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> function bp_styles() {
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultfooterphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/footer.php (3502 => 3503)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/footer.php        2010-12-02 15:07:44 UTC (rev 3502)
+++ trunk/bp-themes/bp-default/footer.php        2010-12-02 17:08:38 UTC (rev 3503)
</span><span class="lines">@@ -7,7 +7,7 @@
</span><span class="cx">                         &lt;?php get_sidebar( 'footer' ) ?&gt;
</span><span class="cx"> 
</span><span class="cx">                         &lt;div id=&quot;site-generator&quot; role=&quot;contentinfo&quot;&gt;
</span><del>-                                &lt;p&gt;&lt;?php printf( __( '%s is proudly powered by &lt;a href=&quot;http://wordpress.org&quot;&gt;WordPress&lt;/a&gt; and &lt;a href=&quot;http://buddypress.org&quot;&gt;BuddyPress&lt;/a&gt;', 'buddypress' ), get_bloginfo( 'name' ) ); ?&gt;&lt;/p&gt;
</del><ins>+                                &lt;p&gt;&lt;?php printf( __( '%s is proudly powered by &lt;a href=&quot;http://wordpress.org&quot;&gt;WordPress&lt;/a&gt; and &lt;a href=&quot;http://buddypress.org&quot;&gt;BuddyPress&lt;/a&gt;', 'buddypress' ), get_bloginfo( 'name', 'display' ) ); ?&gt;&lt;/p&gt;
</ins><span class="cx">                         &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx">                         &lt;?php do_action( 'bp_footer' ) ?&gt;
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultheaderphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/header.php (3502 => 3503)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/header.php        2010-12-02 15:07:44 UTC (rev 3502)
+++ trunk/bp-themes/bp-default/header.php        2010-12-02 17:08:38 UTC (rev 3503)
</span><span class="lines">@@ -38,7 +38,7 @@
</span><span class="cx"> 
</span><span class="cx">                 &lt;div id=&quot;header&quot;&gt;
</span><span class="cx"> 
</span><del>-                        &lt;h1 id=&quot;logo&quot; role=&quot;banner&quot;&gt;&lt;a href=&quot;&lt;?php echo site_url() ?&gt;&quot; title=&quot;&lt;?php _e( 'Home', 'buddypress' ) ?&gt;&quot;&gt;&lt;?php bp_site_name() ?&gt;&lt;/a&gt;&lt;/h1&gt;
</del><ins>+                        &lt;h1 id=&quot;logo&quot; role=&quot;banner&quot;&gt;&lt;a href=&quot;&lt;?php echo home_url() ?&gt;&quot; title=&quot;&lt;?php _e( 'Home', 'buddypress' ) ?&gt;&quot;&gt;&lt;?php bp_site_name() ?&gt;&lt;/a&gt;&lt;/h1&gt;
</ins><span class="cx"> 
</span><span class="cx">                         &lt;div id=&quot;navigation&quot; role=&quot;navigation&quot;&gt;
</span><span class="cx">                                 &lt;?php wp_nav_menu( array( 'container' =&gt; false, 'menu_id' =&gt; 'nav', 'theme_location' =&gt; 'primary', 'fallback_cb' =&gt; 'bp_dtheme_main_nav' ) ); ?&gt;
</span></span></pre>
</div>
</div>

</body>
</html>