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.

Built from https://develop.svn.wordpress.org/trunk@38795


git-svn-id: http://core.svn.wordpress.org/trunk@38738 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrea Fercia 2016-10-14 21:33:28 +00:00
parent 07b97c1d57
commit da4da31af1
10 changed files with 11 additions and 10 deletions

View File

@ -1017,7 +1017,7 @@ body.folded .theme-browser ~ .theme-overlay .theme-wrap {
}
.theme-install-php .wp-filter {
padding: 0 20px;
padding-right: 20px;
}
.theme-install-php a.upload,

File diff suppressed because one or more lines are too long

View File

@ -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,

File diff suppressed because one or more lines are too long

View File

@ -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
}

View File

@ -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

View File

@ -7069,7 +7069,7 @@ Search = wp.media.View.extend({
attributes: {
type: 'search',
placeholder: l10n.search
placeholder: l10n.searchMediaPlaceholder
},
events: {

File diff suppressed because one or more lines are too long

View File

@ -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

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.7-alpha-38794';
$wp_version = '4.7-alpha-38795';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.