Make WordPress Core

Changeset 38795


Ignore:
Timestamp:
10/14/2016 09:32:08 PM (8 years ago)
Author:
afercia
Message:

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.

Location:
trunk/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/themes.css

    r38672 r38795  
    10181018
    10191019.theme-install-php .wp-filter {
    1020     padding: 0 20px;
     1020    padding-left: 20px;
    10211021}
    10221022
  • trunk/src/wp-admin/includes/class-wp-media-list-table.php

    r38672 r38795  
    263263    <div class="search-form">
    264264        <label for="media-search-input" class="screen-reader-text"><?php esc_html_e( 'Search Media' ); ?></label>
    265         <input type="search" placeholder="<?php esc_attr_e( 'Search' ) ?>" id="media-search-input" class="search" name="s" value="<?php _admin_search_query(); ?>"></div>
     265        <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>
    266266    </div>
    267267    <?php
  • trunk/src/wp-admin/includes/plugin-install.php

    r38729 r38795  
    264264        </select>
    265265        <label><span class="screen-reader-text"><?php _e( 'Search Plugins' ); ?></span>
    266             <input type="search" name="s" value="<?php echo esc_attr( $term ) ?>" class="wp-filter-search" placeholder="<?php esc_attr_e( 'Search Plugins' ); ?>" />
     266            <input type="search" name="s" value="<?php echo esc_attr( $term ) ?>" class="wp-filter-search" placeholder="<?php esc_attr_e( 'Search plugins...' ); ?>" />
    267267        </label>
    268268        <?php submit_button( __( 'Search Plugins' ), 'hide-if-js', false, false, array( 'id' => 'search-submit' ) ); ?>
  • trunk/src/wp-includes/js/media-views.js

    r38793 r38795  
    70707070    attributes: {
    70717071        type:        'search',
    7072         placeholder: l10n.search
     7072        placeholder: l10n.searchMediaPlaceholder
    70737073    },
    70747074
  • trunk/src/wp-includes/js/media/views/search.js

    r33337 r38795  
    1717    attributes: {
    1818        type:        'search',
    19         placeholder: l10n.search
     19        placeholder: l10n.searchMediaPlaceholder
    2020    },
    2121
  • trunk/src/wp-includes/media.php

    r38597 r38795  
    34213421        'filterByType'           => __( 'Filter by type' ),
    34223422        'searchMediaLabel'       => __( 'Search Media' ),
     3423        'searchMediaPlaceholder' => __( 'Search media items...' ), // placeholder (no ellipsis)
    34233424        'noMedia'                => __( 'No media files found.' ),
    34243425
Note: See TracChangeset for help on using the changeset viewer.