Ticket #42054: 42054.diff
File 42054.diff, 5.0 KB (added by , 7 years ago) |
---|
-
src/wp-admin/js/customize-controls.js
1603 1603 1604 1604 // Search terms. 1605 1605 debounced = _.debounce( section.checkTerm, 500 ); // Wait until there is no input for 500 milliseconds to initiate a search. 1606 section.contentContainer.on( 'input', ' #wp-filter-search-input', function() {1606 section.contentContainer.on( 'input', '.wp-filter-search', function() { 1607 1607 debounced( section ); 1608 1608 if ( ! section.expanded() ) { 1609 1609 section.expand(); … … 1947 1947 checkTerm: function( section ) { 1948 1948 var newTerm; 1949 1949 if ( 'wporg' === section.params.action ) { 1950 newTerm = $( '#wp-filter-search-input' ).val();1950 newTerm = section.contentContainer.find( '.wp-filter-search' ).val(); 1951 1951 if ( section.term !== newTerm ) { 1952 1952 section.initializeNewQuery( newTerm, section.tags ); 1953 1953 } -
src/wp-includes/customize/class-wp-customize-theme-control.php
67 67 $install_label = sprintf( __( 'Install and preview theme: %s' ), '{{ data.theme.name }}' ); 68 68 ?> 69 69 <# if ( data.theme.active ) { #> 70 <div class="theme active" tabindex="0" aria-describedby="{{ data.section }}-{{ data.theme.id }}-action {{ data.theme.id }}-name">70 <div class="theme active" tabindex="0" aria-describedby="{{ data.section }}-{{ data.theme.id }}-action"> 71 71 <# } else { #> 72 <div class="theme" tabindex="0" aria-describedby="{{ data.section }}-{{ data.theme.id }}-action {{ data.theme.id }}-name">72 <div class="theme" tabindex="0" aria-describedby="{{ data.section }}-{{ data.theme.id }}-action"> 73 73 <# } #> 74 74 75 75 <# if ( data.theme.screenshot && data.theme.screenshot[0] ) { #> -
src/wp-includes/customize/class-wp-customize-themes-panel.php
94 94 <span class="customize-loading-text"><?php _e( 'Setting up your live preview. This may take a bit.' ); ?></span> 95 95 </li><?php // Used as a full-screen overlay transition after clicking to preview a theme. ?> 96 96 <li class="customize-themes-full-container-container"> 97 < ulclass="customize-themes-full-container">98 < li class="customize-themes-notifications"></li>99 </ ul>97 <div class="customize-themes-full-container"> 98 <div class="customize-themes-notifications"></div> 99 </div> 100 100 </li> 101 101 <?php 102 102 } -
src/wp-includes/customize/class-wp-customize-themes-section.php
101 101 <# if ( 'wporg' === data.action ) { #> 102 102 <div class="search-form"> 103 103 <label class="screen-reader-text" for="wp-filter-search-input"><?php _e( 'Search themes…' ); ?></label> 104 <input placeholder="<?php _e( 'Search themes…' ); ?>" type="search" aria-describedby=" live-search-desc" id="wp-filter-search-input" class="wp-filter-search">105 <span id=" live-search-desc" class="screen-reader-text"><?php _e( 'The search results will be updated as you type.' ); ?></span>104 <input placeholder="<?php _e( 'Search themes…' ); ?>" type="search" aria-describedby="{{ data.id }}-live-search-desc" id="wp-filter-search-input-{{ data.id }}" class="wp-filter-search"> 105 <span id="{{ data.id }}-live-search-desc" class="screen-reader-text"><?php _e( 'The search results will be updated as you type.' ); ?></span> 106 106 </div> 107 107 <button type="button" class="button feature-filter-toggle"> 108 108 <span class="filter-count-0"><?php _e( 'Filter themes' ); ?></span><span class="filter-count-filters"> … … 132 132 <p class="themes-filter-container"> 133 133 <label for="themes-filter"> 134 134 <span class="screen-reader-text"><?php _e( 'Search themes…' ); ?></span> 135 <input type="search" id=" themes-filter" placeholder="<?php esc_attr_e( 'Search themes…' ); ?>" aria-describedby="live-search-desc" class="wp-filter-search wp-filter-search-themes" />136 <span id=" live-search-desc" class="screen-reader-text"><?php _e( 'The search results will be updated as you type.' ); ?></span>135 <input type="search" id="{{ data.id }}-themes-filter" placeholder="<?php esc_attr_e( 'Search themes…' ); ?>" aria-describedby="{{ data.id }}-live-search-desc" class="wp-filter-search wp-filter-search-themes" /> 136 <span id="{{ data.id }}-live-search-desc" class="screen-reader-text"><?php _e( 'The search results will be updated as you type.' ); ?></span> 137 137 </label> 138 138 </p> 139 139 <# } #>