WordPress.org

Make WordPress Core

Changeset 26593


Ignore:
Timestamp:
12/03/2013 09:31:37 PM (7 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.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

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

    r26426 r26593  
    7272
    7373    echo '<div id="' . esc_attr( $sidebar ) . '" class="widgets-sortables">';
    74 
    7574    if ( $sidebar_name ) {
     75        if( 'Inactive Widgets' != $sidebar_name ) {
    7676        ?>
    7777        <div class="sidebar-name">
     
    8080        </div>
    8181        <?php
     82        } else {
     83        ?>
     84        <div>
     85            <h3><?php echo esc_html( $sidebar_name ); ?> <span class="spinner"></span></h3>
     86        </div>
     87        <?php
     88        }
    8289    }
    8390
  • 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.