Make WordPress Core

Changeset 33909


Ignore:
Timestamp:
09/05/2015 06:29:40 PM (10 years ago)
Author:
afercia
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/user-edit.php

    r33774 r33909  
    231231</p>
    232232
    233 <h3><?php _e('Personal Options'); ?></h3>
     233<h2><?php _e( 'Personal Options' ); ?></h2>
    234234
    235235<table class="form-table">
     
    302302?>
    303303
    304 <h3><?php _e('Name') ?></h3>
     304<h2><?php _e( 'Name' ); ?></h2>
    305305
    306306<table class="form-table">
     
    393393</table>
    394394
    395 <h3><?php _e('Contact Info') ?></h3>
     395<h2><?php _e( 'Contact Info' ); ?></h2>
    396396
    397397<table class="form-table">
     
    445445</table>
    446446
    447 <h3><?php IS_PROFILE_PAGE ? _e('About Yourself') : _e('About the user'); ?></h3>
     447<h2><?php IS_PROFILE_PAGE ? _e( 'About Yourself' ) : _e( 'About the user' ); ?></h2>
    448448
    449449<table class="form-table">
     
    461461</table>
    462462
    463 <h3><?php _e('Account Management'); ?></h3>
     463<h2><?php _e( 'Account Management' ); ?></h2>
    464464<table class="form-table">
    465465<tr id="password" class="user-pass1-wrap">
     
    569569 * The 'Additional Capabilities' section will only be enabled if
    570570 * the number of the user's capabilities exceeds their number of
    571  * of roles.
     571 * roles.
    572572 *
    573573 * @since 2.8.0
     
    579579    && apply_filters( 'additional_capabilities_display', true, $profileuser )
    580580) : ?>
    581 <h3><?php _e( 'Additional Capabilities' ); ?></h3>
     581<h2><?php _e( 'Additional Capabilities' ); ?></h2>
    582582<table class="form-table">
    583583<tr class="user-capabilities-wrap">
Note: See TracChangeset for help on using the changeset viewer.