WordPress.org

Make WordPress Core

Changeset 39528


Ignore:
Timestamp:
12/06/16 23:11:08 (10 months ago)
Author:
afercia
Message:

Accessibility: Remove inappropriate content from the Themes screen heading.

Props joedolson.

See #26601.

Location:
trunk/src/wp-admin
Files:
3 edited

Legend:

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

    r39301 r39528  
    950950        clear: both; 
    951951        left: 0; 
    952         top: 0; 
    953952        right: 0; 
    954         margin: 10px 0; 
     953        margin: -5px 0 20px 0; 
    955954        width: 100%; 
    956955        max-width: 280px; 
  • trunk/src/wp-admin/js/theme.js

    r38855 r39528  
    8484 
    8585    // Defines search element container 
    86     searchContainer: $( '#wpbody h1:first' ), 
     86    searchContainer: $( '.search-form' ), 
    8787 
    8888    // Search input and view 
     
    17741774    activeClass: 'current', 
    17751775 
    1776     // Overwrite search container class to append search 
    1777     // in new location 
    1778     searchContainer: $( '.wp-filter .search-form' ), 
    1779  
    17801776    /* 
    17811777     * When users press the "Upload Theme" button, show the upload form in place. 
  • trunk/src/wp-admin/themes.php

    r39307 r39528  
    153153 
    154154<div class="wrap"> 
    155     <h1><?php esc_html_e( 'Themes' ); ?> 
     155    <h1 class="wp-heading-inline"><?php esc_html_e( 'Themes' ); ?> 
    156156        <span class="title-count theme-count"><?php echo count( $themes ); ?></span> 
     157    </h1> 
     158 
    157159    <?php if ( ! is_multisite() && current_user_can( 'install_themes' ) ) : ?> 
    158160        <a href="<?php echo admin_url( 'theme-install.php' ); ?>" class="hide-if-no-js page-title-action"><?php echo esc_html_x( 'Add New', 'Add new theme' ); ?></a> 
    159161    <?php endif; ?> 
    160     </h1> 
     162 
     163    <span class="search-form"></span> 
     164 
     165    <hr class="wp-header-end"> 
    161166<?php 
    162167if ( ! validate_current_theme() || isset( $_GET['broken'] ) ) : ?> 
Note: See TracChangeset for help on using the changeset viewer.