Make WordPress Core


Ignore:
Timestamp:
08/06/2012 12:34:44 AM (14 years ago)
Author:
azaozz
Message:

Accessibility: add off-screen Log Out link in the toolbar, tweak the class names of the accessible links in #adminbar, see #21312

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-admin-bar.php

    r21423 r21452  
    349349        ?>
    350350        <div id="wpadminbar" class="<?php echo $class; ?>" role="navigation">
    351             <a id="wpadminbar-shortcut" href="#wp-toolbar" tabindex="1"><?php _e('Skip to toolbar'); ?></a>
     351            <a class="screen-reader-text screen-reader-shortcut" href="#wp-toolbar" tabindex="1"><?php _e('Skip to toolbar'); ?></a>
    352352            <div class="quicklinks" id="wp-toolbar" role="navigation" aria-label="<?php esc_attr_e('Top navigation toolbar.'); ?>">
    353353                <?php foreach ( $root->children as $group ) {
     
    355355                } ?>
    356356            </div>
     357            <a class="screen-reader-text screen-reader-shortcut" href="<?php echo esc_url( wp_logout_url() ); ?>"><?php _e('Log Out'); ?></a>
    357358        </div>
    358359
Note: See TracChangeset for help on using the changeset viewer.