Accessibility: Remove inappropriate content from the Users screen heading.

See #26601.

Built from https://develop.svn.wordpress.org/trunk@39534


git-svn-id: http://core.svn.wordpress.org/trunk@39474 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrea Fercia 2016-12-07 18:29:38 +00:00
parent 710b4431dd
commit 87882d0463
2 changed files with 7 additions and 4 deletions

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(); ?>

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.8-alpha-39533';
$wp_version = '4.8-alpha-39534';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.