Administration: Better consistency for the Media, Add Plugins, and Add Themes toolbars.
Fixes the Add Themes toolbar padding. Standardizes the placeholders to no title case and three trailing dots. Expands the Media search placeholder in "Search media items..." for consistency with the Plugins and Themes toolbars. Props mikeviele, jamesacero, mattking5000, koenschipper, dungengronovius. Fixes #38010. git-svn-id: https://develop.svn.wordpress.org/trunk@38795 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c601e0c682
commit
7ce67a141d
@ -1017,7 +1017,7 @@ body.folded .theme-browser ~ .theme-overlay .theme-wrap {
|
||||
}
|
||||
|
||||
.theme-install-php .wp-filter {
|
||||
padding: 0 20px;
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
.theme-install-php a.upload,
|
||||
|
@ -262,7 +262,7 @@ class WP_Media_List_Table extends WP_List_Table {
|
||||
|
||||
<div class="search-form">
|
||||
<label for="media-search-input" class="screen-reader-text"><?php esc_html_e( 'Search Media' ); ?></label>
|
||||
<input type="search" placeholder="<?php esc_attr_e( 'Search' ) ?>" id="media-search-input" class="search" name="s" value="<?php _admin_search_query(); ?>"></div>
|
||||
<input type="search" placeholder="<?php esc_attr_e( 'Search media items...' ) ?>" id="media-search-input" class="search" name="s" value="<?php _admin_search_query(); ?>"></div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
@ -263,7 +263,7 @@ function install_search_form( $deprecated = true ) {
|
||||
<option value="tag"<?php selected( 'tag', $type ); ?>><?php _ex( 'Tag', 'Plugin Installer' ); ?></option>
|
||||
</select>
|
||||
<label><span class="screen-reader-text"><?php _e( 'Search Plugins' ); ?></span>
|
||||
<input type="search" name="s" value="<?php echo esc_attr( $term ) ?>" class="wp-filter-search" placeholder="<?php esc_attr_e( 'Search Plugins' ); ?>" />
|
||||
<input type="search" name="s" value="<?php echo esc_attr( $term ) ?>" class="wp-filter-search" placeholder="<?php esc_attr_e( 'Search plugins...' ); ?>" />
|
||||
</label>
|
||||
<?php submit_button( __( 'Search Plugins' ), 'hide-if-js', false, false, array( 'id' => 'search-submit' ) ); ?>
|
||||
</form><?php
|
||||
|
@ -7069,7 +7069,7 @@ Search = wp.media.View.extend({
|
||||
|
||||
attributes: {
|
||||
type: 'search',
|
||||
placeholder: l10n.search
|
||||
placeholder: l10n.searchMediaPlaceholder
|
||||
},
|
||||
|
||||
events: {
|
||||
|
@ -16,7 +16,7 @@ Search = wp.media.View.extend({
|
||||
|
||||
attributes: {
|
||||
type: 'search',
|
||||
placeholder: l10n.search
|
||||
placeholder: l10n.searchMediaPlaceholder
|
||||
},
|
||||
|
||||
events: {
|
||||
|
@ -3420,6 +3420,7 @@ function wp_enqueue_media( $args = array() ) {
|
||||
'filterByDate' => __( 'Filter by date' ),
|
||||
'filterByType' => __( 'Filter by type' ),
|
||||
'searchMediaLabel' => __( 'Search Media' ),
|
||||
'searchMediaPlaceholder' => __( 'Search media items...' ), // placeholder (no ellipsis)
|
||||
'noMedia' => __( 'No media files found.' ),
|
||||
|
||||
// Library Details
|
||||
|
Loading…
Reference in New Issue
Block a user