WordPress.org

Make WordPress Core

Changeset 39551


Ignore:
Timestamp:
12/09/16 18:56:46 (5 months ago)
Author:
afercia
Message:

Accessibility: Remove inappropriate content from the Network screens headings.

See #26601.

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

Legend:

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

    r38823 r39551  
    5656 
    5757<div class="wrap"> 
    58 <h1><?php 
     58<h1 class="wp-heading-inline"><?php 
    5959echo esc_html( $title ); 
     60?></h1> 
    6061 
     62<?php 
    6163if ( in_array( get_site_option( 'registration' ), array( 'all', 'blog' ) ) ) { 
    6264    /** This filter is documented in wp-login.php */ 
     
    6466    printf( ' <a href="%s" class="page-title-action">%s</a>', esc_url( $sign_up_url ), esc_html_x( 'Add New', 'site' ) ); 
    6567} 
    66 ?></h1> 
    6768 
    68 <?php 
    6969if ( empty( $blogs ) ) : 
    7070    echo '<p>'; 
     
    7373else : 
    7474?> 
     75 
     76<hr class="wp-header-end"> 
     77 
    7578<form id="myblogs" method="post"> 
    7679    <?php 
  • trunk/src/wp-admin/network/sites.php

    r38957 r39551  
    288288 
    289289<div class="wrap"> 
    290 <h1><?php _e( 'Sites' ); ?> 
     290<h1 class="wp-heading-inline"><?php _e( 'Sites' ); ?></h1> 
    291291 
    292292<?php if ( current_user_can( 'create_sites') ) : ?> 
     
    298298    /* translators: %s: search keywords */ 
    299299    printf( '<span class="subtitle">' . __( 'Search results for &#8220;%s&#8221;' ) . '</span>', esc_html( $s ) ); 
    300 } ?> 
    301 </h1> 
     300} 
     301?> 
     302 
     303<hr class="wp-header-end"> 
    302304 
    303305<?php echo $msg; ?> 
  • trunk/src/wp-admin/network/themes.php

    r38957 r39551  
    248248 
    249249<div class="wrap"> 
    250 <h1><?php echo esc_html( $title ); if ( current_user_can('install_themes') ) { ?> <a href="theme-install.php" class="page-title-action"><?php echo esc_html_x('Add New', 'theme'); ?></a><?php } 
     250<h1 class="wp-heading-inline"><?php echo esc_html( $title ); ?></h1> 
     251 
     252<?php if ( current_user_can( 'install_themes' ) ) : ?> 
     253    <a href="theme-install.php" class="page-title-action"><?php echo esc_html_x( 'Add New', 'theme' ); ?></a> 
     254<?php endif; ?> 
     255 
     256<?php 
    251257if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) { 
    252258    /* translators: %s: search keywords */ 
     
    254260} 
    255261?> 
    256 </h1> 
     262 
     263<hr class="wp-header-end"> 
    257264 
    258265<?php 
  • trunk/src/wp-admin/network/users.php

    r38957 r39551  
    216216    ?> 
    217217<div class="wrap"> 
    218     <h1><?php esc_html_e( 'Users' ); 
     218    <h1 class="wp-heading-inline"><?php esc_html_e( 'Users' ); ?></h1> 
     219 
     220    <?php 
    219221    if ( current_user_can( 'create_users') ) : ?> 
    220222        <a href="<?php echo network_admin_url('user-new.php'); ?>" class="page-title-action"><?php echo esc_html_x( 'Add New', 'user' ); ?></a><?php 
     
    226228    } 
    227229    ?> 
    228     </h1> 
     230 
     231    <hr class="wp-header-end"> 
    229232 
    230233    <?php $wp_list_table->views(); ?> 
Note: See TracChangeset for help on using the changeset viewer.