Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/15/2014 09:37:51 PM (11 years ago)
Author:
boonebgorges
Message:

Use empty() rather than isset() when checking for fallback directory_title component properties

isset() always returns true, even for empty values.

Fixes #5544

Props imath

File:
1 edited

Legend:

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

    r8090 r8276  
    9898
    9999    // Use the string provided by the component
    100     if ( isset( buddypress()->{$component}->directory_title ) ) {
     100    if ( ! empty( buddypress()->{$component}->directory_title ) ) {
    101101        $title = buddypress()->{$component}->directory_title;
    102102
Note: See TracChangeset for help on using the changeset viewer.