Skip to:
Content

BuddyPress.org

Ticket #6391: 6391-empty-blogname-check.diff

File 6391-empty-blogname-check.diff, 744 bytes (added by tw2113, 9 years ago)
  • src/bp-core/bp-core-filters.php

    diff --git src/bp-core/bp-core-filters.php src/bp-core/bp-core-filters.php
    index 080ab60..cf78dcf 100644
    function bp_modify_page_title( $title = '', $sep = '»', $seplocation = 'ri 
    571571         * @link https://buddypress.trac.wordpress.org/ticket/6107
    572572         * @see wp_title()
    573573         */
    574         $title_tag_compatibility = (bool) ( ! empty( $_wp_theme_features['title-tag'] ) || strstr( $title, $blogname ) );
     574        $title_tag_compatibility = (bool) ( ! empty( $_wp_theme_features['title-tag'] ) || ( ! empty( $blogname ) && strstr( $title, $blogname ) ) );
    575575
    576576        // Append the site title to title parts if theme supports title tag.
    577577        if ( true === $title_tag_compatibility ) {