Make WordPress Core


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

Accessibility: Add landmark roles to WordPress admin areas.

props afercia, joedolson.
fixes #31450.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.