Make WordPress Core


Ignore:
Timestamp:
04/21/2015 02:14:27 PM (9 years ago)
Author:
helen
Message:

Customizer: Better experience for widget filtering in desktop and iOS Safari.

Previously, the search field did not appear at all in desktop Safari, and the auto-focus keyboard fly-up in iOS rendered widget adding frustrating at best.

props dsmart, ocean90.
fixes #31987.

File:
1 edited

Legend:

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

    r32054 r32243  
    669669                <input type="search" id="widgets-search" placeholder="<?php esc_attr_e( 'Search widgets&hellip;' ) ?>" />
    670670            </div>
     671            <div id="available-widgets-list">
    671672            <?php foreach ( $this->get_available_widgets() as $available_widget ): ?>
    672673                <div id="widget-tpl-<?php echo esc_attr( $available_widget['id'] ) ?>" data-widget-id="<?php echo esc_attr( $available_widget['id'] ) ?>" class="widget-tpl <?php echo esc_attr( $available_widget['id'] ) ?>" tabindex="0">
     
    674675                </div>
    675676            <?php endforeach; ?>
     677            </div><!-- #available-widgets-list -->
    676678        </div><!-- #available-widgets -->
    677679        </div><!-- #widgets-left -->
Note: See TracChangeset for help on using the changeset viewer.