Skip to:
Content

BuddyPress.org

Changeset 10567


Ignore:
Timestamp:
02/08/2016 07:03:52 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 (trunk)

File:
1 edited

Legend:

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

    r10512 r10567  
    897897    $widget_id = $params[0]['widget_id'];
    898898
     899    // If callback isn't an array, bail.
     900    if ( false === is_array( $wp_registered_widgets[ $widget_id ]['callback'] ) ) {
     901        return $params;
     902    }
     903
    899904    // If the current widget isn't a BuddyPress one, stop!
    900905    // We determine if a widget is a BuddyPress widget, if the widget class
Note: See TracChangeset for help on using the changeset viewer.