Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/08/2016 07:02:39 PM (9 years ago)
Author:
r-a-y
Message:

Widgets: Do not attempt to inject 'buddypress' CSS class for closure callbacks.

Anti-props r-a-y.

See #6767 (2.4-branch)

File:
1 edited

Legend:

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

    r10402 r10566  
    10211021    $widget_id = $params[0]['widget_id'];
    10221022
     1023    // If callback isn't an array, bail.
     1024    if ( false === is_array( $wp_registered_widgets[ $widget_id ]['callback'] ) ) {
     1025        return $params;
     1026    }
     1027
    10231028    // If the current widget isn't a BuddyPress one, stop!
    10241029    // We determine if a widget is a BuddyPress widget, if the widget class
Note: See TracChangeset for help on using the changeset viewer.