Make WordPress Core

Changeset 31955


Ignore:
Timestamp:
04/01/2015 01:16:47 PM (10 years ago)
Author:
ocean90
Message:

Accessibility: Add landmark roles to WordPress admin areas.

props afercia, joedolson.
fixes #31450.

Location:
trunk/src
Files:
4 edited

Legend:

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

    r30649 r31955  
    1616<div class="clear"></div></div><!-- wpcontent -->
    1717
    18 <div id="wpfooter">
     18<div id="wpfooter" role="contentinfo">
    1919    <?php
    2020    /**
  • trunk/src/wp-admin/admin-header.php

    r31879 r31955  
    191191
    192192<div id="wpwrap">
    193 <a tabindex="1" href="#wpbody-content" class="screen-reader-shortcut"><?php _e('Skip to main content'); ?></a>
    194193<?php require(ABSPATH . 'wp-admin/menu-header.php'); ?>
    195194<div id="wpcontent">
     
    204203?>
    205204
    206 <div id="wpbody">
     205<div id="wpbody" role="main">
    207206<?php
    208207unset($title_class, $blog_name, $total_update_count, $update_title);
  • trunk/src/wp-admin/menu-header.php

    r31364 r31955  
    220220?>
    221221
     222<div id="adminmenumain" role="navigation" aria-label="<?php esc_attr_e( 'Main menu' ); ?>">
     223<a href="#wpbody-content" class="screen-reader-shortcut"><?php _e( 'Skip to main content' ); ?></a>
     224<a href="#wp-toolbar" class="screen-reader-shortcut"><?php _e( 'Skip to toolbar' ); ?></a>
    222225<div id="adminmenuback"></div>
    223226<div id="adminmenuwrap">
    224 <ul id="adminmenu" role="navigation">
     227<ul id="adminmenu">
    225228
    226229<?php
     
    237240</ul>
    238241</div>
     242</div>
  • trunk/src/wp-includes/class-wp-admin-bar.php

    r28318 r31955  
    364364
    365365        ?>
    366         <div id="wpadminbar" class="<?php echo $class; ?>" role="navigation">
    367             <a class="screen-reader-shortcut" href="#wp-toolbar" tabindex="1"><?php _e('Skip to toolbar'); ?></a>
    368             <div class="quicklinks" id="wp-toolbar" role="navigation" aria-label="<?php esc_attr_e('Top navigation toolbar.'); ?>" tabindex="0">
     366        <div id="wpadminbar" class="<?php echo $class; ?>">
     367            <?php if ( ! is_admin() ) { ?>
     368                <a class="screen-reader-shortcut" href="#wp-toolbar" tabindex="1"><?php _e( 'Skip to toolbar' ); ?></a>
     369            <?php } ?>
     370            <div class="quicklinks" id="wp-toolbar" role="navigation" aria-label="<?php esc_attr_e( 'Toolbar' ); ?>" tabindex="0">
    369371                <?php foreach ( $root->children as $group ) {
    370372                    $this->_render_group( $group );
Note: See TracChangeset for help on using the changeset viewer.