WordPress.org

Make WordPress Core

Ticket #6415: 6415.diff

File 6415.diff, 1.4 KB (added by mdawaffe, 10 years ago)
  • wp-admin/css/ie.css

     
    139139        display: inline-block;
    140140        padding: 2px 5px;
    141141}
     142
     143/* Widgets */
     144#sidebar-selector-nav input, #sidebar-selector-nav select {
     145        width: expression(Math.min(parseInt(this.offsetWidth), 135 ) + "px");
     146}
  • wp-admin/css/widgets.css

     
    188188        width: auto;
    189189        display: block;
    190190}
     191
     192#sidebar-selector-nav input, #sidebar-selector-nav select {
     193        max-width: 135px;
     194}
  • wp-admin/widgets.php

     
    256256        <div id="available-sidebars" class="widget-liquid-right">
    257257                <h3><?php _e('Current Widgets'); ?></h3>
    258258
    259                 <div class="nav">
     259                <div class="nav" id="sidebar-selector-nav">
    260260                        <select id="sidebar-selector" name="sidebar">
    261261<?php foreach ( $wp_registered_sidebars as $sidebar_id => $registered_sidebar ) : $sidebar_id = attribute_escape( $sidebar_id ); ?>
    262262                                <option value='<?php echo $sidebar_id; ?>'<?php selected( $sidebar_id, $sidebar ); ?>><?php echo wp_specialchars( $registered_sidebar['name'] ); ?></option>