Ticket #40331: 40331.6.diff
File 40331.6.diff, 5.2 KB (added by , 11 months ago) |
---|
-
src/js/_enqueues/wp/theme.js
96 96 }, 97 97 98 98 // Defines search element container. 99 searchContainer: $( '.search-form ' ),99 searchContainer: $( '.search-form .search-box' ), 100 100 101 101 // Search input and view 102 102 // for current theme collection. … … 118 118 // Render and append after screen title. 119 119 view.render(); 120 120 this.searchContainer 121 .append( $.parseHTML( '<label class="screen-reader-text"for="wp-filter-search-input">' + l10n.search + '</label>' ) )121 .append( $.parseHTML( '<label for="wp-filter-search-input">' + l10n.search + '</label>' ) ) 122 122 .append( view.el ) 123 123 .on( 'submit', function( event ) { 124 124 event.preventDefault(); … … 1359 1359 searching: false, 1360 1360 1361 1361 attributes: { 1362 placeholder: l10n.searchPlaceholder,1363 1362 type: 'search', 1364 1363 'aria-describedby': 'live-search-desc' 1365 1364 }, -
src/wp-admin/css/themes.css
19 19 clear: both; 20 20 } 21 21 22 .themes-php:not(.network-admin) .wrap h1 {23 margin-bottom: 15px;24 }25 26 22 .themes-php .wrap h1 .button { 27 23 margin-left: 20px; 28 24 } … … 29 25 30 26 /* Search form */ 31 27 .themes-php .search-form { 32 display: inline; 28 display: inline-flex; 29 align-items: center; 30 position: relative; 31 top: 0; 32 gap: .5rem; 33 width: 100%; 34 justify-content: end; 33 35 } 34 36 35 37 .themes-php .wp-filter-search { 36 38 position: relative; 37 top: -2px;38 left: 20px;39 39 margin: 0; 40 40 width: 280px; 41 41 } … … 955 955 clear: both; 956 956 left: 0; 957 957 right: 0; 958 margin: -5px 0 20px;959 958 width: 100%; 960 959 max-width: 280px; 961 960 } -
src/wp-admin/network/site-themes.php
237 237 <p><?php _e( 'Network enabled themes are not shown on this screen.' ); ?></p> 238 238 239 239 <form method="get"> 240 <?php $wp_list_table->search_box( __( 'Search Installed Themes' ), 'theme' ); ?>240 <?php $wp_list_table->search_box( __( 'Search installed themes' ), 'theme' ); ?> 241 241 <input type="hidden" name="id" value="<?php echo esc_attr( $id ); ?>" /> 242 242 </form> 243 243 -
src/wp-admin/network/themes.php
460 460 ?> 461 461 462 462 <form method="get"> 463 <?php $wp_list_table->search_box( __( 'Search Installed Themes' ), 'theme' ); ?>463 <?php $wp_list_table->search_box( __( 'Search installed themes' ), 'theme' ); ?> 464 464 </form> 465 465 466 466 <?php -
src/wp-admin/theme-install.php
56 56 'l10n' => array( 57 57 'addNew' => __( 'Add New Theme' ), 58 58 'search' => __( 'Search Themes' ), 59 'searchPlaceholder' => __( 'Search themes...' ), // Placeholder (no ellipsis).60 59 'upload' => __( 'Upload Theme' ), 61 60 'back' => __( 'Back' ), 62 61 'error' => sprintf( … … 217 216 218 217 <button type="button" class="button drawer-toggle" aria-expanded="false"><?php _e( 'Feature Filter' ); ?></button> 219 218 220 <form class="search-form">< /form>219 <form class="search-form"><p class="search-box"></p></form> 221 220 222 221 <div class="favorites-form"> 223 222 <?php -
src/wp-admin/themes.php
232 232 ), 233 233 'l10n' => array( 234 234 'addNew' => __( 'Add New Theme' ), 235 'search' => __( 'Search Installed Themes' ), 236 'searchPlaceholder' => __( 'Search installed themes...' ), // Placeholder (no ellipsis). 235 'search' => __( 'Search installed themes' ), 237 236 /* translators: %d: Number of themes. */ 238 237 'themesFound' => __( 'Number of Themes found: %d' ), 239 238 'noThemesFound' => __( 'No themes found. Try a different search.' ), … … 252 251 <h1 class="wp-heading-inline"><?php esc_html_e( 'Themes' ); ?> 253 252 <span class="title-count theme-count"><?php echo ! empty( $_GET['search'] ) ? __( '…' ) : count( $themes ); ?></span> 254 253 </h1> 255 256 254 <?php if ( ! is_multisite() && current_user_can( 'install_themes' ) ) : ?> 257 255 <a href="<?php echo esc_url( admin_url( 'theme-install.php' ) ); ?>" class="hide-if-no-js page-title-action"><?php echo esc_html__( 'Add New Theme' ); ?></a> 258 256 <?php endif; ?> 257 <hr class="wp-header-end"> 258 <form class="search-form search-themes"><p class="search-box"></p></form> 259 259 260 <form class="search-form"></form>261 262 <hr class="wp-header-end">263 260 <?php 264 261 if ( ! validate_current_theme() || isset( $_GET['broken'] ) ) { 265 262 wp_admin_notice(