Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/11/2019 02:14:28 AM (6 years ago)
Author:
boonebgorges
Message:

Avoid PHP notices when saving widget link_title.

Props dcavins.
See #8036.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/classes/class-bp-groups-widget.php

    r11805 r12323  
    187187        $instance['max_groups']    = strip_tags( $new_instance['max_groups'] );
    188188        $instance['group_default'] = strip_tags( $new_instance['group_default'] );
    189         $instance['link_title']    = (bool) $new_instance['link_title'];
     189        $instance['link_title']    = ! empty( $new_instance['link_title'] );
    190190
    191191        return $instance;
Note: See TracChangeset for help on using the changeset viewer.