diff --git a/src/wp-admin/js/customize-controls.js b/src/wp-admin/js/customize-controls.js index e236650740..f2f6196281 100644 --- a/src/wp-admin/js/customize-controls.js +++ b/src/wp-admin/js/customize-controls.js @@ -1659,7 +1659,7 @@ // Search terms. debounced = _.debounce( section.checkTerm, 500 ); // Wait until there is no input for 500 milliseconds to initiate a search. - section.contentContainer.on( 'input', '#wp-filter-search-input', function() { + section.contentContainer.on( 'input', '.wp-filter-search', function() { debounced( section ); if ( ! section.expanded() ) { section.expand(); @@ -2003,7 +2003,7 @@ checkTerm: function( section ) { var newTerm; if ( 'wporg' === section.params.action ) { - newTerm = $( '#wp-filter-search-input' ).val(); + newTerm = section.contentContainer.find( '.wp-filter-search' ).val(); if ( section.term !== newTerm ) { section.initializeNewQuery( newTerm, section.tags ); } diff --git a/src/wp-includes/customize/class-wp-customize-theme-control.php b/src/wp-includes/customize/class-wp-customize-theme-control.php index 2d1cbdbcf2..886a711bc7 100644 --- a/src/wp-includes/customize/class-wp-customize-theme-control.php +++ b/src/wp-includes/customize/class-wp-customize-theme-control.php @@ -67,9 +67,9 @@ class WP_Customize_Theme_Control extends WP_Customize_Control { $install_label = sprintf( __( 'Install and preview theme: %s' ), '{{ data.theme.name }}' ); ?> <# if ( data.theme.active ) { #> -
+
<# } else { #> -
+
<# } #> <# if ( data.theme.screenshot && data.theme.screenshot[0] ) { #> diff --git a/src/wp-includes/customize/class-wp-customize-themes-panel.php b/src/wp-includes/customize/class-wp-customize-themes-panel.php index bbb0d16daa..1db08db73e 100644 --- a/src/wp-includes/customize/class-wp-customize-themes-panel.php +++ b/src/wp-includes/customize/class-wp-customize-themes-panel.php @@ -46,7 +46,7 @@ class WP_Customize_Themes_Panel extends WP_Customize_Panel { ?> - +
    @@ -90,9 +90,9 @@ class WP_Customize_Themes_Panel extends WP_Customize_Panel {
  • -
      -
    • -
    +
    +
    +
  • <# if ( 'wporg' === data.action ) { #>
    - - - + + +
    <# } else { #> -

    - -

    +
    + + + +
    <# } #>