Ticket #40331: 40331.combined.2.diff
File 40331.combined.2.diff, 27.5 KB (added by , 15 months ago) |
---|
-
src/js/_enqueues/vendor/tinymce/plugins/wplink/plugin.js
56 56 renderHtml: function() { 57 57 return ( 58 58 '<div id="' + this._id + '" class="wp-link-input">' + 59 '< input type="text" value="" placeholder="' + tinymce.translate( 'Paste URL or type to search' ) + '" />' +59 '<label for="' + this._id + '_label">' + tinymce.translate( 'Paste URL or type to search' ) + '</label><input id="' + this._id + '_label" type="text" value="" />' + 60 60 '<input type="text" style="display:none" value="" />' + 61 61 '</div>' 62 62 ); 63 63 }, 64 64 setURL: function( url ) { 65 this.getEl().firstChild. value = url;65 this.getEl().firstChild.nextSibling.value = url; 66 66 }, 67 67 getURL: function() { 68 return tinymce.trim( this.getEl().firstChild. value );68 return tinymce.trim( this.getEl().firstChild.nextSibling.value ); 69 69 }, 70 70 getLinkText: function() { 71 var text = this.getEl().firstChild.nextSibling. value;71 var text = this.getEl().firstChild.nextSibling.nextSibling.value; 72 72 73 73 if ( ! tinymce.trim( text ) ) { 74 74 return ''; … … 77 77 return text.replace( /[\r\n\t ]+/g, ' ' ); 78 78 }, 79 79 reset: function() { 80 var urlInput = this.getEl().firstChild ;80 var urlInput = this.getEl().firstChild.nextSibling; 81 81 82 82 urlInput.value = ''; 83 83 urlInput.nextSibling.value = ''; … … 391 391 type: 'WPLinkInput', 392 392 onPostRender: function() { 393 393 var element = this.getEl(), 394 input = element.firstChild ,394 input = element.firstChild.nextSibling, 395 395 $input, cache, last; 396 396 397 397 inputInstance = this; … … 435 435 }, 436 436 select: function( event, ui ) { 437 437 $input.val( ui.item.permalink ); 438 $( element.firstChild.nextSibling ).val( ui.item.title );438 $( element.firstChild.nextSibling.nextSibling ).val( ui.item.title ); 439 439 440 440 if ( 9 === event.keyCode && typeof window.wpLinkL10n !== 'undefined' ) { 441 441 // Audible confirmation message when a link has been selected. -
src/js/_enqueues/wp/customize/controls.js
1917 1917 section.contentContainer.on( 'click', '.feature-filter-toggle', function( e ) { 1918 1918 var $themeContainer = $( '.customize-themes-full-container' ), 1919 1919 $filterToggle = $( e.currentTarget ); 1920 section.filtersHeight = $filterToggle.parent ().next( '.filter-drawer' ).height();1920 section.filtersHeight = $filterToggle.parents( '.themes-filter-bar' ).next( '.filter-drawer' ).height(); 1921 1921 1922 1922 if ( 0 < $themeContainer.scrollTop() ) { 1923 1923 $themeContainer.animate( { scrollTop: 0 }, 400 ); … … 1932 1932 .attr( 'aria-expanded', function( i, attr ) { 1933 1933 return 'true' === attr ? 'false' : 'true'; 1934 1934 }) 1935 .parent ().next( '.filter-drawer' ).slideToggle( 180, 'linear' );1935 .parents( '.themes-filter-bar' ).next( '.filter-drawer' ).slideToggle( 180, 'linear' ); 1936 1936 1937 1937 if ( $filterToggle.hasClass( 'open' ) ) { 1938 1938 var marginOffset = 1018 < window.innerWidth ? 50 : 76; … … 3739 3739 ready: function() { 3740 3740 var control = this, newItem; 3741 3741 if ( 'dropdown-pages' === control.params.type && control.params.allow_addition ) { 3742 newItem = control.container.find( '.new-content-item ' );3742 newItem = control.container.find( '.new-content-item-wrapper' ); 3743 3743 newItem.hide(); // Hide in JS to preserve flex display when showing. 3744 3744 control.container.on( 'click', '.add-new-toggle', function( e ) { 3745 3745 $( e.currentTarget ).slideUp( 180 ); … … 4085 4085 } 4086 4086 4087 4087 toggle = control.container.find( '.add-new-toggle' ); 4088 container = control.container.find( '.new-content-item ' );4088 container = control.container.find( '.new-content-item-wrapper' ); 4089 4089 input = control.container.find( '.create-item-input' ); 4090 4090 title = input.val(); 4091 4091 select = control.container.find( 'select' ); -
src/js/media/views/attachments/browser.js
378 378 } 379 379 380 380 if ( this.options.search ) { 381 // Search is an input, a visually hiddenlabel element needs to be rendered before.381 // Search is an input, a label element needs to be rendered before. 382 382 this.toolbar.set( 'searchLabel', new wp.media.view.Label({ 383 383 value: l10n.searchLabel, 384 384 className: 'media-search-input-label', -
src/wp-admin/css/common.css
1090 1090 1091 1091 .wp-filter .search-form { 1092 1092 float: right; 1093 margin: 10px 0; 1093 display: flex; 1094 align-items: center; 1095 column-gap: .5rem; 1094 1096 } 1095 1097 1096 1098 .wp-filter .search-form input[type="search"] { … … 1119 1121 .wp-filter .search-form.search-plugins .wp-filter-search, 1120 1122 .no-js .wp-filter .search-form.search-plugins .button { 1121 1123 display: inline-block; 1122 margin-top: 10px;1123 1124 vertical-align: top; 1124 1125 } 1125 1126 … … 1360 1361 position: relative; 1361 1362 max-width: 100%; 1362 1363 } 1364 .wp-filter .search-form { 1365 margin: 11px 0; 1366 flex-wrap: wrap; 1367 row-gap: 10px; 1368 } 1363 1369 } 1364 1370 1365 1371 @media only screen and (max-width: 782px) { … … 4123 4129 } 4124 4130 4125 4131 .wp-filter .search-form input[type="search"] { 4126 width: 100%;4127 4132 font-size: 1rem; 4128 4133 } 4129 4134 -
src/wp-admin/css/customize-controls.css
1082 1082 float: left; 1083 1083 } 1084 1084 1085 #available-menu-items .accordion-section-content .new-content-item ,1086 .customize-control-dropdown-pages .new-content-item {1085 #available-menu-items .accordion-section-content .new-content-item-wrapper, 1086 .customize-control-dropdown-pages .new-content-item-wrapper { 1087 1087 width: calc(100% - 30px); 1088 1088 padding: 8px 15px; 1089 1089 position: absolute; … … 1090 1090 bottom: 0; 1091 1091 z-index: 10; 1092 1092 background: #f0f0f1; 1093 } 1094 1095 .customize-control-dropdown-pages .new-content-item-wrapper { 1096 width: 100%; 1097 padding: 0; 1098 position: static; 1099 } 1100 1101 #available-menu-items .accordion-section-content .new-content-item, 1102 .customize-control-dropdown-pages .new-content-item { 1093 1103 display: flex; 1094 1104 } 1095 1105 … … 1099 1109 position: relative; 1100 1110 } 1101 1111 1112 .customize-control-dropdown-pages .new-content-item-wrapper .new-content-item { 1113 padding: 0; 1114 } 1115 1102 1116 #available-menu-items .new-content-item .create-item-input, 1103 1117 .customize-control-dropdown-pages .new-content-item .create-item-input { 1104 1118 flex-grow: 10; … … 1815 1829 bottom: 0; 1816 1830 } 1817 1831 1818 .themes-filter-bar .feature-filter-toggle {1819 float: right;1820 margin: 3px 0 3px 25px;1821 }1822 1823 1832 .themes-filter-bar .feature-filter-toggle:before { 1824 1833 content: "\f111"; 1825 1834 margin: 0 5px 0 0; … … 1880 1889 animation: .6s themes-fade-in 1; 1881 1890 } 1882 1891 1883 .control-panel-themes .filter-themes-count {1884 position: relative;1885 float: right;1886 line-height: 2.6;1887 }1888 1889 1892 .control-panel-themes .filter-themes-count .themes-displayed { 1890 1893 font-weight: 600; 1891 1894 color: #50575e; … … 2097 2100 box-sizing: border-box; 2098 2101 border-bottom: 1px solid #dcdcde; 2099 2102 } 2103 .customize-preview-header.themes-filter-bar, 2104 .customize-preview-header.themes-filter-bar .search-form { 2105 display: flex; 2106 align-items: center; 2107 gap: 10px; 2108 flex-wrap: wrap; 2109 } 2100 2110 2111 .customize-preview-header.themes-filter-bar .search-form-input { 2112 position: relative; 2113 } 2114 2115 .customize-preview-header .filter-themes-wrapper { 2116 display: grid; 2117 align-items: center; 2118 gap: 10px; 2119 grid-template-columns: auto 1fr; 2120 } 2121 2122 .customize-preview-header .filter-themes-wrapper .filter-themes-count { 2123 justify-self: end; 2124 } 2125 2101 2126 @media screen and (min-width: 1670px) { 2102 2127 .customize-preview-header.themes-filter-bar { 2103 2128 width: 82%; … … 2109 2134 .themes-filter-bar .themes-filter-container { 2110 2135 margin: 0; 2111 2136 padding: 0; 2137 display: flex; 2138 align-items: center; 2139 gap: 10px; 2112 2140 } 2113 2141 2114 2142 .themes-filter-bar .wp-filter-search { … … 2117 2145 max-width: 100%; 2118 2146 width: 40%; 2119 2147 min-width: 300px; 2120 position: absolute;2121 top: 6px;2122 left: 25px;2123 2148 height: 32px; 2124 2149 margin: 1px 0; 2150 top: 0; 2151 left: 0; 2125 2152 } 2126 2153 2154 .themes-filter-bar .wp-filter-search label { 2155 vertical-align: 2156 } 2157 2127 2158 /* Unstick the filter bar on short windows/screens. This breakpoint is based on the 2128 2159 current length of .org feature filters assuming translations do not wrap lines. */ 2129 2160 @media screen and (max-height: 540px), screen and (max-width: 1018px) { … … 2157 2188 2158 2189 @media screen and (max-width: 900px) { 2159 2190 .customize-preview-header.themes-filter-bar { 2160 height: 86px; 2161 padding-top: 46px; 2191 height: 96px; 2162 2192 } 2163 2193 2164 2194 .themes-filter-bar .wp-filter-search { 2165 width: calc(100% - 50px);2195 width: 100%; 2166 2196 margin: 0; 2167 2197 min-width: 200px; 2168 2198 } 2169 2199 2200 .customize-preview-header.themes-filter-bar, 2201 .customize-preview-header.themes-filter-bar .search-form 2202 .themes-filter-bar .themes-filter-container { 2203 display: grid; 2204 gap: 4px; 2205 } 2206 2207 .customize-preview-header.themes-filter-bar .search-form-input { 2208 display: flex; 2209 flex-grow: 1; 2210 } 2211 2212 .customize-preview-header.themes-filter-bar .search-icon { 2213 top: 6px; 2214 } 2215 2170 2216 .filter-drawer { 2171 2217 top: 86px; 2172 2218 } … … 2580 2626 } 2581 2627 2582 2628 #available-widgets-list { 2583 top: 60px;2629 top: 76px; 2584 2630 position: absolute; 2585 2631 overflow: auto; 2586 2632 bottom: 0; … … 2624 2670 #available-widgets-filter .search-icon { 2625 2671 display: block; 2626 2672 position: absolute; 2627 top: 15px; /* 13 container padding +1 input margin +1 input border */2673 bottom: 15px; /* 13 container padding +1 input margin +1 input border */ 2628 2674 left: 16px; 2629 2675 width: 30px; 2630 2676 height: 30px; … … 2636 2682 #available-widgets-filter .clear-results, 2637 2683 #available-menu-items-search .clear-results { 2638 2684 position: absolute; 2639 top: 15px; /* 13 container padding +1 input margin +1 input border */2685 top: 35px; /* 13 container padding +1 input margin +1 input border */ 2640 2686 right: 16px; 2641 2687 width: 30px; 2642 2688 height: 30px; … … 2695 2741 2696 2742 .themes-filter-bar .search-icon { 2697 2743 position: absolute; 2698 top: 7px;2699 left: 2 6px;2744 top: 2px; 2745 left: 2px; 2700 2746 z-index: 1; 2701 2747 color: #646970; 2702 2748 height: 30px; … … 2814 2860 margin-top: 12px; 2815 2861 } 2816 2862 2817 .wp-core-ui .themes-filter-bar .feature-filter-toggle {2818 margin: 3px 0 3px 25px;2819 }2820 2863 } 2821 2864 2822 2865 @media screen and (max-width: 1200px) { … … 2964 3007 .reordering .reorder-done { 2965 3008 padding: 8px; 2966 3009 } 2967 2968 .wp-core-ui .themes-filter-bar .feature-filter-toggle {2969 margin: 0;2970 }2971 3010 } 2972 3011 2973 3012 @media screen and (max-width: 600px) { -
src/wp-admin/css/customize-nav-menus.css
581 581 } 582 582 583 583 #available-menu-items .accordion-section-content .available-menu-items-list { 584 margin: 0 0 45px;584 margin: 0 0 64px; 585 585 padding: 1px 15px 15px; 586 586 } 587 587 … … 680 680 681 681 #available-menu-items-search .spinner { 682 682 position: absolute; 683 top: 20px; /* 13 container padding +1 input margin +6 ( ( 32 input height - 20 spinner height ) / 2 ) */683 bottom: 20px; /* 13 container padding +1 input margin +6 ( ( 32 input height - 20 spinner height ) / 2 ) */ 684 684 right: 21px; 685 685 margin: 0 !important; 686 686 } … … 689 689 #available-menu-items #available-menu-items-search .accordion-section-content { 690 690 position: absolute; 691 691 left: 0; 692 top: 60px; /* below title div / search input */692 top: 75px; /* below title div / search input */ 693 693 bottom: 0; /* 100% height that still triggers lazy load */ 694 694 max-height: none; 695 695 width: 100%; -
src/wp-admin/css/forms.css
720 720 } 721 721 722 722 p.search-box { 723 display: flex; 724 flex-wrap: wrap; 725 align-items: center; 726 column-gap: .5rem; 727 position: relative; 723 728 float: right; 724 margin: 0;729 margin: 11px 0; 725 730 } 726 731 727 732 .network-admin.themes-php p.search-box { -
src/wp-admin/css/media.css
581 581 } 582 582 583 583 .media-frame-content .media-search-input-label { 584 margin: 0 .2em 0 0;585 584 vertical-align: baseline; 586 585 } 587 586 588 .media-frame.mode-grid .media-search-input-label {589 position: static;590 margin: 0 .5em 0 0;591 }592 593 587 .attachments-browser .media-toolbar-secondary > .media-button { 594 588 margin-right: 10px; 595 589 } … … 1369 1363 width: 100%; 1370 1364 margin-bottom: 20px; 1371 1365 display: flex; 1366 flex-wrap: nowrap; 1367 column-gap: 0px; 1372 1368 } 1373 1369 1370 .wp-filter p.search-box #media-search-input { 1371 width: 100%; 1372 } 1373 1374 1374 } 1375 1375 1376 1376 @media only screen and (max-width: 782px) { -
src/wp-admin/includes/class-wp-plugins-list-table.php
452 452 } 453 453 ?> 454 454 <p class="search-box"> 455 <label class="screen-reader-text" for="<?php echo esc_attr( $input_id ); ?>"><?php echo $text; ?>:</label>456 <input type="search" id="<?php echo esc_attr( $input_id ); ?>" class="wp-filter-search" name="s" value="<?php _admin_search_query(); ?>" placeholder="<?php esc_attr_e( 'Search installed plugins...' ); ?>"/>455 <label for="<?php echo esc_attr( $input_id ); ?>"><?php echo $text; ?></label> 456 <input type="search" id="<?php echo esc_attr( $input_id ); ?>" class="wp-filter-search" name="s" value="<?php _admin_search_query(); ?>" /> 457 457 <?php submit_button( $text, 'hide-if-js', '', false, array( 'id' => 'search-submit' ) ); ?> 458 458 </p> 459 459 <?php -
src/wp-admin/includes/plugin-install.php
320 320 ?> 321 321 <form class="search-form search-plugins" method="get"> 322 322 <input type="hidden" name="tab" value="search" /> 323 <label for="search-plugins"><?php _e( 'Search Plugins' ); ?></label> 324 <input type="search" name="s" id="search-plugins" value="<?php echo esc_attr( $term ); ?>" class="wp-filter-search" /> 323 325 <label class="screen-reader-text" for="typeselector"> 324 326 <?php 325 327 /* translators: Hidden accessibility text. */ … … 331 333 <option value="author"<?php selected( 'author', $type ); ?>><?php _e( 'Author' ); ?></option> 332 334 <option value="tag"<?php selected( 'tag', $type ); ?>><?php _ex( 'Tag', 'Plugin Installer' ); ?></option> 333 335 </select> 334 <label class="screen-reader-text" for="search-plugins">335 <?php336 /* translators: Hidden accessibility text. */337 _e( 'Search Plugins' );338 ?>339 </label>340 <input type="search" name="s" id="search-plugins" value="<?php echo esc_attr( $term ); ?>" class="wp-filter-search" placeholder="<?php esc_attr_e( 'Search plugins...' ); ?>" />341 336 <?php submit_button( __( 'Search Plugins' ), 'hide-if-js', false, false, array( 'id' => 'search-submit' ) ); ?> 342 337 </form> 343 338 <?php -
src/wp-admin/plugins.php
788 788 <?php $wp_list_table->views(); ?> 789 789 790 790 <form class="search-form search-plugins" method="get"> 791 <?php $wp_list_table->search_box( __( 'Search Installed Plugins' ), 'plugin' ); ?>791 <?php $wp_list_table->search_box( __( 'Search installed plugins' ), 'plugin' ); ?> 792 792 </form> 793 793 794 794 <form method="post" id="bulk-action-form"> -
src/wp-includes/class-wp-customize-control.php
635 635 printf( __( '+ %s' ), get_post_type_object( 'page' )->labels->add_new_item ); 636 636 ?> 637 637 </button> 638 <div class="new-content-item"> 639 <label for="create-input-<?php echo esc_attr( $this->id ); ?>"><span class="screen-reader-text"> 640 <?php 641 /* translators: Hidden accessibility text. */ 642 _e( 'New page title' ); 643 ?> 644 </span></label> 645 <input type="text" id="create-input-<?php echo esc_attr( $this->id ); ?>" class="create-item-input" placeholder="<?php esc_attr_e( 'New page title…' ); ?>"> 646 <button type="button" class="button add-content"><?php _e( 'Add' ); ?></button> 638 <div class="new-content-item-wrapper"> 639 <label for="create-input-<?php echo esc_attr( $this->id ); ?>"><?php _e( 'New page title' ); ?></label> 640 <div class="new-content-item"> 641 <input type="text" id="create-input-<?php echo esc_attr( $this->id ); ?>" class="create-item-input" > 642 <button type="button" class="button add-content"><?php _e( 'Add' ); ?></button> 643 </div> 647 644 </div> 648 645 <?php endif; ?> 649 646 <?php -
src/wp-includes/class-wp-customize-nav-menus.php
1163 1163 </div> 1164 1164 <div id="available-menu-items-search" class="accordion-section cannot-expand"> 1165 1165 <div class="accordion-section-title"> 1166 <label class="screen-reader-text" for="menu-items-search"> 1167 <?php 1168 /* translators: Hidden accessibility text. */ 1169 _e( 'Search Menu Items' ); 1170 ?> 1171 </label> 1172 <input type="text" id="menu-items-search" placeholder="<?php esc_attr_e( 'Search menu items…' ); ?>" aria-describedby="menu-items-search-desc" /> 1166 <label for="menu-items-search"><?php _e( 'Search Menu Items' ); ?></label> 1167 <input type="text" id="menu-items-search" aria-describedby="menu-items-search-desc" /> 1173 1168 <p class="screen-reader-text" id="menu-items-search-desc"> 1174 1169 <?php 1175 1170 /* translators: Hidden accessibility text. */ … … 1177 1172 ?> 1178 1173 </p> 1179 1174 <span class="spinner"></span> 1175 <div class="search-icon" aria-hidden="true"></div> 1180 1176 </div> 1181 <div class="search-icon" aria-hidden="true"></div>1182 1177 <button type="button" class="clear-results"><span class="screen-reader-text"> 1183 1178 <?php 1184 1179 /* translators: Hidden accessibility text. */ … … 1243 1238 <?php if ( 'post_type' === $available_item_type['type'] ) : ?> 1244 1239 <?php $post_type_obj = get_post_type_object( $available_item_type['object'] ); ?> 1245 1240 <?php if ( current_user_can( $post_type_obj->cap->create_posts ) && current_user_can( $post_type_obj->cap->publish_posts ) ) : ?> 1246 <div class="new-content-item"> 1247 <label for="<?php echo esc_attr( 'create-item-input-' . $available_item_type['object'] ); ?>" class="screen-reader-text"><?php echo esc_html( $post_type_obj->labels->add_new_item ); ?></label> 1248 <input type="text" id="<?php echo esc_attr( 'create-item-input-' . $available_item_type['object'] ); ?>" class="create-item-input" placeholder="<?php echo esc_attr( $post_type_obj->labels->add_new_item ); ?>"> 1249 <button type="button" class="button add-content"><?php _e( 'Add' ); ?></button> 1241 <div class="new-content-item-wrapper"> 1242 <label for="<?php echo esc_attr( 'create-item-input-' . $available_item_type['object'] ); ?>"><?php echo esc_html( $post_type_obj->labels->add_new_item ); ?></label> 1243 <div class="new-content-item"> 1244 <input type="text" id="<?php echo esc_attr( 'create-item-input-' . $available_item_type['object'] ); ?>" class="create-item-input"> 1245 <button type="button" class="button add-content"><?php _e( 'Add' ); ?></button> 1246 </div> 1250 1247 </div> 1251 1248 <?php endif; ?> 1252 1249 <?php endif; ?> -
src/wp-includes/class-wp-customize-widgets.php
909 909 </h3> 910 910 </div> 911 911 <div id="available-widgets-filter"> 912 <label class="screen-reader-text"for="widgets-search">912 <label for="widgets-search"> 913 913 <?php 914 914 /* translators: Hidden accessibility text. */ 915 915 _e( 'Search Widgets' ); 916 916 ?> 917 917 </label> 918 <input type="text" id="widgets-search" placeholder="<?php esc_attr_e( 'Search widgets…' ); ?>"aria-describedby="widgets-search-desc" />918 <input type="text" id="widgets-search" aria-describedby="widgets-search-desc" /> 919 919 <div class="search-icon" aria-hidden="true"></div> 920 920 <button type="button" class="clear-results"><span class="screen-reader-text"> 921 921 <?php -
src/wp-includes/css/editor.css
1737 1737 color: #d63638; 1738 1738 } 1739 1739 1740 .mce-inline-toolbar-grp div.mce-flow-layout-item > div { 1741 display: flex; 1742 align-items: flex-end; 1743 } 1744 1740 1745 div.wp-link-input { 1741 1746 float: left; 1742 1747 margin: 2px; … … 1743 1748 max-width: 694px; 1744 1749 } 1745 1750 1751 div.wp-link-input label { 1752 margin-bottom: 4px; 1753 display: block; 1754 } 1755 1746 1756 div.wp-link-input input { 1747 1757 width: 300px; 1748 1758 padding: 3px; -
src/wp-includes/css/media-views.css
1208 1208 display: flex; 1209 1209 align-items: center; 1210 1210 column-gap: .5rem; 1211 margin: 11px 0; 1211 1212 } 1212 1213 1213 1214 .mode-grid .attachments-browser .media-toolbar-mode-select .media-toolbar-primary { … … 2797 2798 } 2798 2799 2799 2800 .mode-grid .attachments-browser .media-toolbar-primary { 2800 display: flex; 2801 display: grid; 2802 grid-template-columns: auto 1fr; 2801 2803 } 2802 2804 2803 2805 .mode-grid .attachments-browser .media-toolbar-primary input[type="search"] { -
src/wp-includes/customize/class-wp-customize-themes-section.php
124 124 <button type="button" class="button button-primary customize-section-back customize-themes-mobile-back"><?php _e( 'Go to theme sources' ); ?></button> 125 125 <# if ( 'wporg' === data.action ) { #> 126 126 <div class="search-form"> 127 <label for="wp-filter-search-input-{{ data.id }}" class="screen-reader-text"> 128 <?php 129 /* translators: Hidden accessibility text. */ 130 _e( 'Search themes…' ); 131 ?> 132 </label> 133 <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"> 134 <div class="search-icon" aria-hidden="true"></div> 135 <span id="{{ data.id }}-live-search-desc" class="screen-reader-text"> 136 <?php 137 /* translators: Hidden accessibility text. */ 138 _e( 'The search results will be updated as you type.' ); 139 ?> 140 </span> 127 <label for="wp-filter-search-input-{{ data.id }}"><?php _e( 'Search themes' ); ?></label> 128 <div class="search-form-input"> 129 <input type="search" id="wp-filter-search-input-{{ data.id }}" aria-describedby="{{ data.id }}-live-search-desc" class="wp-filter-search"> 130 <div class="search-icon" aria-hidden="true"></div> 131 <span id="{{ data.id }}-live-search-desc" class="screen-reader-text"> 132 <?php 133 /* translators: Hidden accessibility text. */ 134 _e( 'The search results will be updated as you type.' ); 135 ?> 136 </span> 137 </div> 141 138 </div> 139 <# } else { #> 140 <div class="themes-filter-container"> 141 <label for="{{ data.id }}-themes-filter"><?php _e( 'Search themes' ); ?></label> 142 <div class="search-form-input"> 143 <input type="search" id="{{ data.id }}-themes-filter" aria-describedby="{{ data.id }}-live-search-desc" class="wp-filter-search wp-filter-search-themes" /> 144 <div class="search-icon" aria-hidden="true"></div> 145 <span id="{{ data.id }}-live-search-desc" class="screen-reader-text"> 146 <?php 147 /* translators: Hidden accessibility text. */ 148 _e( 'The search results will be updated as you type.' ); 149 ?> 150 </span> 151 </div> 152 </div> 153 <# } #> 154 <div class="filter-themes-wrapper"> 155 <# if ( 'wporg' === data.action ) { #> 142 156 <button type="button" class="button feature-filter-toggle"> 143 157 <span class="filter-count-0"><?php _e( 'Filter themes' ); ?></span><span class="filter-count-filters"> 144 158 <?php … … 147 161 ?> 148 162 </span> 149 163 </button> 150 <# } else {#>151 <div class=" themes-filter-container">152 < label for="{{ data.id }}-themes-filter" class="screen-reader-text">164 <# } #> 165 <div class="filter-themes-count"> 166 <span class="themes-displayed"> 153 167 <?php 154 /* translators: Hidden accessibility text. */155 _e( 'Search themes…' );168 /* translators: %s: Number of themes displayed. */ 169 printf( __( '%s themes' ), '<span class="theme-count">0</span>' ); 156 170 ?> 157 </label>158 <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" />159 <div class="search-icon" aria-hidden="true"></div>160 <span id="{{ data.id }}-live-search-desc" class="screen-reader-text">161 <?php162 /* translators: Hidden accessibility text. */163 _e( 'The search results will be updated as you type.' );164 ?>165 171 </span> 166 172 </div> 167 <# } #>168 <div class="filter-themes-count">169 <span class="themes-displayed">170 <?php171 /* translators: %s: Number of themes displayed. */172 printf( __( '%s themes' ), '<span class="theme-count">0</span>' );173 ?>174 </span>175 173 </div> 176 174 <?php 177 175 } -
src/wp-includes/media.php
4815 4815 'apply' => __( 'Apply' ), 4816 4816 'filterByDate' => __( 'Filter by date' ), 4817 4817 'filterByType' => __( 'Filter by type' ), 4818 'searchLabel' => __( 'Search ' ),4818 'searchLabel' => __( 'Search media' ), 4819 4819 'searchMediaLabel' => __( 'Search media' ), // Backward compatibility pre-5.3. 4820 4820 'searchMediaPlaceholder' => __( 'Search media items...' ), // Placeholder (no ellipsis), backward compatibility pre-5.3. 4821 4821 /* translators: %d: Number of attachments found in a search. */