Skip to:
Content

BuddyPress.org

Ticket #5257: 5257.patch

File 5257.patch, 768 bytes (added by henrywright, 11 years ago)
  • bp-core-filters.php

     
    343343 */
    344344function bp_modify_page_title( $title, $sep, $seplocation ) {
    345345        global $bp;
     346       
     347        // If this is a 404 page not found, return the title produced by WP
     348        if ( is_404() )
     349        return $title;
    346350
    347351        // If this is not a BP page, just return the title produced by WP
    348352        if ( bp_is_blog_page() )
     
    355359        $title = '';
    356360
    357361        // Displayed user
    358         if ( bp_get_displayed_user_fullname() && !is_404() ) {
     362        if ( bp_get_displayed_user_fullname() ) {
    359363
    360364                // Get the component's ID to try and get it's name
    361365                $component_id = $component_name = bp_current_component();