Skip to:
Content

BuddyPress.org

Ticket #6767: 6767.01.patch

File 6767.01.patch, 603 bytes (added by r-a-y, 9 years ago)
  • src/bp-core/bp-core-filters.php

    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 ) { 
    10051005
    10061006        $widget_id = $params[0]['widget_id'];
    10071007
     1008        // If callback isn't an array, bail.
     1009        if ( false === is_array( $wp_registered_widgets[ $widget_id ]['callback'] ) ) {
     1010                return $params;
     1011        }
     1012
    10081013        // If the current widget isn't a BuddyPress one, stop!
    10091014        // We determine if a widget is a BuddyPress widget, if the widget class
    10101015        // begins with 'bp_'.