Accessibility: bump H3 headings to H2 on User Edit and Your Profile screens.

Ongoing effort to restore a good headings hierarchy in the admin screens after the reintroduction of the missing main `<h1>` in [32974].

Fix a typo in the DocBlock for the `additional_capabilities_display` filter.

Props metodiew.
Fixes #33606. See #31650.
Built from https://develop.svn.wordpress.org/trunk@33909


git-svn-id: http://core.svn.wordpress.org/trunk@33878 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrea Fercia 2015-09-05 18:30:24 +00:00
parent 465e348c12
commit 47ceb6bb5c
2 changed files with 8 additions and 8 deletions

View File

@ -230,7 +230,7 @@ if ( ! IS_PROFILE_PAGE ) {
<input type="hidden" name="checkuser_id" value="<?php echo get_current_user_id(); ?>" />
</p>
<h3><?php _e('Personal Options'); ?></h3>
<h2><?php _e( 'Personal Options' ); ?></h2>
<table class="form-table">
<?php if ( ! ( IS_PROFILE_PAGE && ! $user_can_edit ) ) : ?>
@ -301,7 +301,7 @@ do_action( 'personal_options', $profileuser );
}
?>
<h3><?php _e('Name') ?></h3>
<h2><?php _e( 'Name' ); ?></h2>
<table class="form-table">
<tr class="user-user-login-wrap">
@ -392,7 +392,7 @@ if ( is_multisite() && is_network_admin() && ! IS_PROFILE_PAGE && current_user_c
</tr>
</table>
<h3><?php _e('Contact Info') ?></h3>
<h2><?php _e( 'Contact Info' ); ?></h2>
<table class="form-table">
<tr class="user-email-wrap">
@ -444,7 +444,7 @@ if ( is_multisite() && is_network_admin() && ! IS_PROFILE_PAGE && current_user_c
?>
</table>
<h3><?php IS_PROFILE_PAGE ? _e('About Yourself') : _e('About the user'); ?></h3>
<h2><?php IS_PROFILE_PAGE ? _e( 'About Yourself' ) : _e( 'About the user' ); ?></h2>
<table class="form-table">
<tr class="user-description-wrap">
@ -460,7 +460,7 @@ if ( $show_password_fields ) :
?>
</table>
<h3><?php _e('Account Management'); ?></h3>
<h2><?php _e( 'Account Management' ); ?></h2>
<table class="form-table">
<tr id="password" class="user-pass1-wrap">
<th><label for="pass1"><?php _e( 'New Password' ); ?></label></th>
@ -568,7 +568,7 @@ if ( IS_PROFILE_PAGE && count( $sessions->get_all() ) === 1 ) : ?>
*
* The 'Additional Capabilities' section will only be enabled if
* the number of the user's capabilities exceeds their number of
* of roles.
* roles.
*
* @since 2.8.0
*
@ -578,7 +578,7 @@ if ( IS_PROFILE_PAGE && count( $sessions->get_all() ) === 1 ) : ?>
if ( count( $profileuser->caps ) > count( $profileuser->roles )
&& apply_filters( 'additional_capabilities_display', true, $profileuser )
) : ?>
<h3><?php _e( 'Additional Capabilities' ); ?></h3>
<h2><?php _e( 'Additional Capabilities' ); ?></h2>
<table class="form-table">
<tr class="user-capabilities-wrap">
<th scope="row"><?php _e( 'Capabilities' ); ?></th>

View File

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