Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/10/2016 06:47:25 PM (10 years ago)
Author:
tw2113
Message:

Prevent PHP warning regarding possible empty needle variables for bp_modify_page_title() function. Fixes #6391.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-filters.php

    r11007 r11010  
    575575         * @see wp_title()
    576576         */
    577         $title_tag_compatibility = (bool) ( ! empty( $_wp_theme_features['title-tag'] ) || strstr( $title, $blogname ) );
     577        $title_tag_compatibility = (bool) ( ! empty( $_wp_theme_features['title-tag'] ) || ( $blogname && strstr( $title, $blogname ) ) );
    578578
    579579        // Append the site title to title parts if theme supports title tag.
Note: See TracChangeset for help on using the changeset viewer.