Make WordPress Core

Ticket #21312: 21312-2.patch

File 21312-2.patch, 2.4 KB (added by azaozz, 9 years ago)
  • wp-admin/admin-header.php

     
    110110?>
    111111
    112112<div id="wpwrap">
    113 <a tabindex="1" href="#wpbody-content" class="screen-reader-text screen-reader-shortcut"><?php _e('Skip to main content'); ?></a>
     113<a tabindex="1" href="#wpbody-content" class="screen-reader-shortcut"><?php _e('Skip to main content'); ?></a>
    114114<?php require(ABSPATH . 'wp-admin/menu-header.php'); ?>
    115115<div id="wpcontent">
    116116
  • wp-admin/css/wp-admin.css

     
    199199        overflow: hidden;
    200200}
    201201
     202.screen-reader-shortcut {
     203        position: absolute;
     204        top: -1000em;
     205}
     206
    202207.screen-reader-shortcut:focus {
    203208        left: 6px;
    204209        top: -21px;
  • wp-includes/class-wp-admin-bar.php

     
    348348
    349349                ?>
    350350                <div id="wpadminbar" class="<?php echo $class; ?>" role="navigation">
    351                         <a class="screen-reader-text screen-reader-shortcut" href="#wp-toolbar" tabindex="1"><?php _e('Skip to toolbar'); ?></a>
     351                        <a class="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.'); ?>" tabindex="0">
    353353                                <?php foreach ( $root->children as $group ) {
    354354                                        $this->_render_group( $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>
     357                        <a class="screen-reader-shortcut" href="<?php echo esc_url( wp_logout_url() ); ?>"><?php _e('Log Out'); ?></a>
    358358                </div>
    359359
    360360                <?php
  • wp-includes/css/admin-bar.css

     
    625625        overflow: hidden;
    626626}
    627627
     628#wpadminbar .screen-reader-shortcut {
     629        position: absolute;
     630        top: -1000em;
     631}
     632
    628633#wpadminbar .screen-reader-shortcut:focus {
    629634        left: 6px;
    630635        top: 7px;