Skip to:
Content

BuddyPress.org

Changeset 6938


Ignore:
Timestamp:
04/22/2013 12:10:11 AM (11 years ago)
Author:
r-a-y
Message:

Restore legacy widget CSS classes for backwards-compatibility.

r6865 changed all widget CSS classes to 'buddypress'.

However, we have to be considerate to themes that are already using the
older widget CSS classes from BP 1.6 and lower.

This commit brings back these CSS classes. See #4869.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-widgets.php

    r6877 r6938  
    1818        $widget_ops = array(
    1919            'description' => __( 'A dynamic list of recently active, popular, and newest members', 'buddypress' ),
    20             'classname' => 'buddypress',
     20            'classname' => 'widget_bp_core_members_widget buddypress',
    2121        );
    2222        parent::__construct( false, $name = _x( '(BuddyPress) Members', 'widget name', 'buddypress' ), $widget_ops );
     
    149149        $widget_ops = array(
    150150            'description' => __( 'Avatars of users who are currently online', 'buddypress' ),
    151             'classname' => 'buddypress',
     151            'classname' => 'widget_bp_core_whos_online_widget buddypress',
    152152        );
    153153        parent::__construct( false, $name = _x( "(BuddyPress) Who's Online", 'widget name', 'buddypress' ), $widget_ops );
     
    216216        $widget_ops = array(
    217217            'description' => __( 'Avatars of recently active members', 'buddypress' ),
    218             'classname' => 'buddypress',
     218            'classname' => 'widget_bp_core_recently_active_widget buddypress',
    219219        );
    220220        parent::__construct( false, $name = _x( '(BuddyPress) Recently Active Members', 'widget name', 'buddypress' ), $widget_ops );
  • trunk/bp-groups/bp-groups-widgets.php

    r6878 r6938  
    2727        $widget_ops = array(
    2828            'description' => __( 'A dynamic list of recently active, popular, and newest groups', 'buddypress' ),
    29             'classname' => 'buddypress',
     29            'classname' => 'widget_bp_groups_widget buddypress',
    3030        );
    3131        parent::__construct( false, _x( '(BuddyPress) Groups', 'widget name', 'buddypress' ), $widget_ops );
Note: See TracChangeset for help on using the changeset viewer.