WordPress.org

Make WordPress Core

Changeset 21305


Ignore:
Timestamp:
07/23/2012 10:00:06 PM (8 years ago)
Author:
azaozz
Message:

Add "Skip to content" link to all screens in the admin, fixes #21361

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-header.php

    r21010 r21305  
    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">
     
    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
  • trunk/wp-admin/js/common.dev.js

    r21209 r21305  
    362362    }
    363363
     364    $('#wpbody-content-shortcut').bind('click.wp-skip-to-content', function(e){
     365        $('#wpbody-content').focus();
     366        e.preventDefault();
     367    });
    364368});
    365369
Note: See TracChangeset for help on using the changeset viewer.