WordPress.org

Make WordPress Core

Ticket #21324: 21324.patch

File 21324.patch, 1.0 KB (added by azaozz, 6 years ago)
  • wp-admin/admin-header.php

     
    107107?>
    108108
    109109<div id="wpwrap">
     110<a id="wpbody-content-shortcut" tabindex="5" href="#wpbody-content" class="hide-if-no-js screen-reader-text"><?php _e('Skip to main content'); ?></a>
    110111<?php require(ABSPATH . 'wp-admin/menu-header.php'); ?>
    111112<div id="wpcontent">
    112113
     
    122123
    123124?>
    124125
    125 <div id="wpbody-content">
     126<div id="wpbody-content" tabindex="-1" aria-label="<?php esc_attr_e('Main content'); ?>">
    126127<?php
    127128
    128129$current_screen->render_screen_meta();
  • wp-admin/js/common.dev.js

     
    361361                });
    362362        }
    363363
     364        $('#wpbody-content-shortcut').bind('click.wp-skip-to-content', function(e){
     365                $('#wpbody-content').focus();
     366                e.preventDefault();
     367        });
    364368});
    365369
    366370// internal use