Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/02/2010 05:08:38 PM (14 years ago)
Author:
djpaul
Message:

Correct links and site title when BP-Default is used on hosted sites in a multisite configuration. Fixes #1972, #2061, #2653.

File:
1 edited

Legend:

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

    r3488 r3503  
    744744
    745745function bp_site_name() {
    746     echo apply_filters( 'bp_site_name', get_blog_option( BP_ROOT_BLOG, 'blogname' ) );
     746    echo apply_filters( 'bp_site_name', get_bloginfo( 'name', 'display' ) );
    747747}
    748748
     
    931931    }
    932932
    933     if ( defined( 'BP_ENABLE_MULTIBLOG' ) ) {
    934         $blog_title = get_blog_option( $current_blog->blog_id, 'blogname' );
    935     } else {
    936         $blog_title = get_blog_option( BP_ROOT_BLOG, 'blogname' );
    937     }
    938 
    939     return apply_filters( 'bp_page_title', $blog_title . ' | ' . esc_attr( $title ), esc_attr( $title ) );
     933    return apply_filters( 'bp_page_title', esc_attr( get_bloginfo( 'name', 'display' ) . ' | ' . $title ), esc_attr( $title ) );
    940934}
    941935
Note: See TracChangeset for help on using the changeset viewer.