Accessibility: Remove inappropriate content from the Users screen heading.

See #26601.


git-svn-id: https://develop.svn.wordpress.org/trunk@39534 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrea Fercia 2016-12-07 18:28:49 +00:00
parent d986f9dcdc
commit ee5b840228

View File

@ -491,9 +491,11 @@ if ( ! empty($messages) ) {
} ?>
<div class="wrap">
<h1>
<?php
<h1 class="wp-heading-inline"><?php
echo esc_html( $title );
?></h1>
<?php
if ( current_user_can( 'create_users' ) ) { ?>
<a href="<?php echo admin_url( 'user-new.php' ); ?>" class="page-title-action"><?php echo esc_html_x( 'Add New', 'user' ); ?></a>
<?php } elseif ( is_multisite() && current_user_can( 'promote_users' ) ) { ?>
@ -505,7 +507,8 @@ if ( strlen( $usersearch ) ) {
printf( '<span class="subtitle">' . __( 'Search results for &#8220;%s&#8221;' ) . '</span>', esc_html( $usersearch ) );
}
?>
</h1>
<hr class="wp-header-end">
<?php $wp_list_table->views(); ?>