Skip to:
Content

BuddyPress.org

Changeset 3564


Ignore:
Timestamp:
12/22/2010 03:22:39 PM (14 years ago)
Author:
boonebgorges
Message:

WP_DEBUG warnings in bp_get_page_title()

File:
1 edited

Legend:

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

    r3559 r3564  
    909909        $title = strip_tags( $bp->displayed_user->fullname . ' | ' . ucwords( $bp->current_component ) );
    910910
    911     } else if ( $bp->is_single_item ) {
     911    } else if ( !empty( $bp->is_single_item ) ) {
    912912        $title = ucwords( $bp->current_component ) . ' | ' . $bp->bp_options_title . ' | ' . $bp->bp_options_nav[$bp->current_component][$bp->current_action]['name'];
    913913
    914     } else if ( $bp->is_directory ) {
     914    } else if ( !empty( $bp->is_directory ) ) {
    915915        if ( !$bp->current_component )
    916916            $title = sprintf( __( '%s Directory', 'buddypress' ), ucwords( BP_MEMBERS_SLUG ) );
Note: See TracChangeset for help on using the changeset viewer.