diff --git src/bp-core/bp-core-filters.php src/bp-core/bp-core-filters.php
index f8d92d1..f8f9498 100644
|
|
function _bp_core_inject_bp_widget_css_class( $params ) { |
1005 | 1005 | |
1006 | 1006 | $widget_id = $params[0]['widget_id']; |
1007 | 1007 | |
| 1008 | // If callback isn't an array, bail. |
| 1009 | if ( false === is_array( $wp_registered_widgets[ $widget_id ]['callback'] ) ) { |
| 1010 | return $params; |
| 1011 | } |
| 1012 | |
1008 | 1013 | // If the current widget isn't a BuddyPress one, stop! |
1009 | 1014 | // We determine if a widget is a BuddyPress widget, if the widget class |
1010 | 1015 | // begins with 'bp_'. |