Accessibility: Remove inappropriate content from the Edit User screen heading.
See #26601. Built from https://develop.svn.wordpress.org/trunk@39538 git-svn-id: http://core.svn.wordpress.org/trunk@39478 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2c227839d4
commit
57c2604200
|
@ -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.
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.8-alpha-39537';
|
||||
$wp_version = '4.8-alpha-39538';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue