Ticket #40331: 40331.media-plugins.diff
File 40331.media-plugins.diff, 7.1 KB (added by , 15 months ago) |
---|
-
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/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/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/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. */