Ticket #42054: 42054.2.diff
File 42054.2.diff, 5.9 KB (added by , 7 years ago) |
---|
-
src/wp-admin/js/customize-controls.js
1659 1659 1660 1660 // Search terms. 1661 1661 debounced = _.debounce( section.checkTerm, 500 ); // Wait until there is no input for 500 milliseconds to initiate a search. 1662 section.contentContainer.on( 'input', ' #wp-filter-search-input', function() {1662 section.contentContainer.on( 'input', '.wp-filter-search', function() { 1663 1663 debounced( section ); 1664 1664 if ( ! section.expanded() ) { 1665 1665 section.expand(); … … 2003 2003 checkTerm: function( section ) { 2004 2004 var newTerm; 2005 2005 if ( 'wporg' === section.params.action ) { 2006 newTerm = $( '#wp-filter-search-input' ).val();2006 newTerm = section.contentContainer.find( '.wp-filter-search' ).val(); 2007 2007 if ( section.term !== newTerm ) { 2008 2008 section.initializeNewQuery( newTerm, section.tags ); 2009 2009 } -
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
46 46 ?> 47 47 48 48 <?php if ( current_user_can( 'switch_themes' ) ) : ?> 49 <button type="button" class="button change-theme" aria-label="<?php _e( 'Change theme' ); ?>"><?php _ex( 'Change', 'theme' ); ?></button>49 <button type="button" class="button change-theme" aria-label="<?php esc_attr_e( 'Change theme' ); ?>"><?php _ex( 'Change', 'theme' ); ?></button> 50 50 <?php endif; ?> 51 51 </h3> 52 52 <ul class="accordion-sub-container control-panel-content"></ul> … … 90 90 <?php endif; ?> 91 91 </li> 92 92 <li class="customize-themes-full-container-container"> 93 < ulclass="customize-themes-full-container">94 < li class="customize-themes-notifications"></li>95 </ ul>93 <div class="customize-themes-full-container"> 94 <div class="customize-themes-notifications"></div> 95 </div> 96 96 </li> 97 97 <?php 98 98 } -
src/wp-includes/customize/class-wp-customize-themes-section.php
100 100 <button type="button" class="button button-primary customize-section-back customize-themes-mobile-back"><?php _e( 'Back to theme sources' ); ?></button> 101 101 <# if ( 'wporg' === data.action ) { #> 102 102 <div class="search-form"> 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>103 <label for="wp-filter-search-input-{{ data.id }}" class="screen-reader-text"><?php _e( 'Search themes…' ); ?></label> 104 <input type="search" id="wp-filter-search-input-{{ data.id }}" placeholder="<?php esc_attr_e( 'Search themes…' ); ?>" aria-describedby="{{ data.id }}-live-search-desc" 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"> … … 129 129 ?> 130 130 </div> 131 131 <# } else { #> 132 <p class="themes-filter-container"> 133 <label for="themes-filter"> 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> 137 </label> 138 </p> 132 <div class="themes-filter-container"> 133 <label for="{{ data.id }}-themes-filter" class="screen-reader-text"><?php _e( 'Search themes…' ); ?></label> 134 <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" /> 135 <span id="{{ data.id }}-live-search-desc" class="screen-reader-text"><?php _e( 'The search results will be updated as you type.' ); ?></span> 136 </div> 139 137 <# } #> 140 138 <div class="filter-themes-count"> 141 139 <span class="themes-displayed">