WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/03/2013 09:31:37 PM (8 years ago)
Author:
iammattthomas
Message:

Set Available and Inactive Widget areas to not collapse, since they don't look like collapsing elements. Fixes #26327, props MikeHansenMe.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/widgets.php

    r26518 r26593  
    330330<div id="widgets-left">
    331331    <div id="available-widgets" class="widgets-holder-wrap">
    332         <div class="sidebar-name">
    333             <div class="sidebar-name-arrow"><br /></div>
     332        <div>
    334333            <h3><?php _e('Available Widgets'); ?> <span id="removing-widget"><?php _ex('Deactivate', 'removing-widget'); ?> <span></span></span></h3>
    335334        </div>
     
    351350foreach ( $wp_registered_sidebars as $sidebar => $registered_sidebar ) {
    352351    if ( false !== strpos( $registered_sidebar['class'], 'inactive-sidebar' ) || 'orphaned_widgets' == substr( $sidebar, 0, 16 ) ) {
    353         $wrap_class = 'widgets-holder-wrap';
     352        $wrap_class = ( $registered_sidebar['id'] == 'wp_inactive_widgets' ) ? '' : 'widgets-holder-wrap';
    354353        if ( !empty( $registered_sidebar['class'] ) )
    355354            $wrap_class .= ' ' . $registered_sidebar['class'];
Note: See TracChangeset for help on using the changeset viewer.