Skip to:
Content

Changeset 6903


Ignore:
Timestamp:
04/10/13 19:32:52 (12 months 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:
branches/1.7
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/1.7/bp-core/bp-core-widgets.php

    r6877 r6903  
    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 ); 
  • branches/1.7/bp-groups/bp-groups-widgets.php

    r6878 r6903  
    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.