Ticket #40331: 40331.5.diff
File 40331.5.diff, 5.3 KB (added by , 7 months ago) |
---|
-
src/js/_enqueues/wp/theme.js
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
27 27 margin-left: 20px; 28 28 } 29 29 30 .themes-php .themes-search-tools { 31 display: inline-flex; 32 gap: .5rem; 33 align-items: center; 34 position: relative; 35 top: -3px; 36 } 37 30 38 /* Search form */ 31 39 .themes-php .search-form { 32 display: inline; 40 display: inline-flex; 41 align-items: center; 42 position: relative; 43 top: 0; 44 gap: .5rem; 33 45 } 34 46 47 .themes-php .page-title-action { 48 top: 0; 49 margin-left: 0; 50 } 51 35 52 .themes-php .wp-filter-search { 36 53 position: relative; 37 top: -2px;38 left: 20px;39 54 margin: 0; 40 55 width: 280px; 41 56 } … … 955 970 clear: both; 956 971 left: 0; 957 972 right: 0; 958 margin: -5px 0 20px;959 973 width: 100%; 960 974 max-width: 280px; 961 975 } 962 976 977 .themes-php .themes-search-tools { 978 align-items: flex-end; 979 flex-wrap: wrap; 980 } 981 982 .themes-php .themes-search-tools .page-title-action { 983 align-items: flex-end; 984 top: 0; 985 } 986 963 987 .theme-browser .theme.add-new-theme span:after { 964 988 font: normal 60px/90px dashicons; 965 989 width: 80px; … … 1029 1053 padding-left: 20px; 1030 1054 } 1031 1055 1056 .theme-install-php .wp-filter .search-form { 1057 margin: 10px 0; 1058 } 1059 1032 1060 .theme-install-php a.upload, 1033 1061 .theme-install-php a.browse-themes { 1034 1062 cursor: pointer; -
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( -
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> 254 <div class="themes-search-tools"> 255 <form class="search-form"></form> 255 256 256 <?php if ( ! is_multisite() && current_user_can( 'install_themes' ) ) : ?> 257 <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 <?php endif; ?> 259 260 <form class="search-form"></form> 261 257 <?php if ( ! is_multisite() && current_user_can( 'install_themes' ) ) : ?> 258 <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> 259 <?php endif; ?> 260 </div> 262 261 <hr class="wp-header-end"> 263 262 <?php 264 263 if ( ! validate_current_theme() || isset( $_GET['broken'] ) ) {