Accessibility: Remove inappropriate content from the Edit User screen heading.

See #26601.


git-svn-id: https://develop.svn.wordpress.org/trunk@39538 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrea Fercia 2016-12-07 22:07:14 +00:00
parent 0b9b3bc3f4
commit 7417527b4b
1 changed files with 9 additions and 4 deletions

View File

@ -198,17 +198,22 @@ include(ABSPATH . 'wp-admin/admin-header.php');
<?php endif; ?>
<div class="wrap" id="profile-page">
<h1>
<?php
<h1 class="wp-heading-inline"><?php
echo esc_html( $title );
?></h1>
<?php
if ( ! IS_PROFILE_PAGE ) {
if ( current_user_can( 'create_users' ) ) { ?>
<a href="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' ) ) { ?>
<a href="user-new.php" class="page-title-action"><?php echo esc_html_x( 'Add Existing', 'user' ); ?></a>
<?php }
} ?>
</h1>
}
?>
<hr class="wp-header-end">
<form id="your-profile" action="<?php echo esc_url( self_admin_url( IS_PROFILE_PAGE ? 'profile.php' : 'user-edit.php' ) ); ?>" method="post" novalidate="novalidate"<?php
/**
* Fires inside the your-profile form tag on the user editing screen.