WordPress.org

Make WordPress Core

Changeset 39526


Ignore:
Timestamp:
12/06/16 22:17:03 (9 months ago)
Author:
afercia
Message:

Accessibility: Remove inappropriate content from the Media Library screens headings.

Props joedolson.

See #26601.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/upload.php

    r38958 r39526  
    7474    ?> 
    7575    <div class="wrap" id="wp-media-grid" data-search="<?php _admin_search_query() ?>"> 
    76         <h1> 
     76        <h1 class="wp-heading-inline"><?php echo esc_html( $title ); ?></h1> 
     77 
    7778        <?php 
    78         echo esc_html( $title ); 
    7979        if ( current_user_can( 'upload_files' ) ) { ?> 
    8080            <a href="<?php echo admin_url( 'media-new.php' ); ?>" class="page-title-action"><?php echo esc_html_x( 'Add New', 'file' ); ?></a><?php 
    8181        } 
    8282        ?> 
    83         </h1> 
     83 
     84        <hr class="wp-header-end"> 
     85 
    8486        <div class="error hide-if-js"> 
    8587            <p><?php printf( 
     
    222224 
    223225<div class="wrap"> 
    224 <h1> 
     226<h1 class="wp-heading-inline"><?php echo esc_html( $title ); ?></h1> 
     227 
    225228<?php 
    226 echo esc_html( $title ); 
    227229if ( current_user_can( 'upload_files' ) ) { ?> 
    228     <a href="<?php echo admin_url( 'media-new.php' ); ?>" class="page-title-action"><?php echo esc_html_x('Add New', 'file'); ?></a><?php 
    229 } 
     230    <a href="<?php echo admin_url( 'media-new.php' ); ?>" class="page-title-action"><?php echo esc_html_x( 'Add New', 'file' ); ?></a><?php 
     231} 
     232 
    230233if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) { 
    231234    /* translators: %s: search keywords */ 
     
    233236} 
    234237?> 
    235 </h1> 
     238 
     239<hr class="wp-header-end"> 
    236240 
    237241<?php 
Note: See TracChangeset for help on using the changeset viewer.