mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
Accessibility: Add landmark roles to WordPress admin areas.
props afercia, joedolson. fixes #31450. Built from https://develop.svn.wordpress.org/trunk@31955 git-svn-id: http://core.svn.wordpress.org/trunk@31934 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8ab7c076d6
commit
a7ba89b027
@ -15,7 +15,7 @@ if ( !defined('ABSPATH') )
|
||||
<div class="clear"></div></div><!-- wpbody -->
|
||||
<div class="clear"></div></div><!-- wpcontent -->
|
||||
|
||||
<div id="wpfooter">
|
||||
<div id="wpfooter" role="contentinfo">
|
||||
<?php
|
||||
/**
|
||||
* Fires after the opening tag for the admin footer.
|
||||
|
@ -190,7 +190,6 @@ if ( current_user_can( 'customize' ) ) {
|
||||
?>
|
||||
|
||||
<div id="wpwrap">
|
||||
<a tabindex="1" href="#wpbody-content" class="screen-reader-shortcut"><?php _e('Skip to main content'); ?></a>
|
||||
<?php require(ABSPATH . 'wp-admin/menu-header.php'); ?>
|
||||
<div id="wpcontent">
|
||||
|
||||
@ -203,7 +202,7 @@ if ( current_user_can( 'customize' ) ) {
|
||||
do_action( 'in_admin_header' );
|
||||
?>
|
||||
|
||||
<div id="wpbody">
|
||||
<div id="wpbody" role="main">
|
||||
<?php
|
||||
unset($title_class, $blog_name, $total_update_count, $update_title);
|
||||
|
||||
|
@ -219,9 +219,12 @@ function _wp_menu_output( $menu, $submenu, $submenu_as_parent = true ) {
|
||||
|
||||
?>
|
||||
|
||||
<div id="adminmenumain" role="navigation" aria-label="<?php esc_attr_e( 'Main menu' ); ?>">
|
||||
<a href="#wpbody-content" class="screen-reader-shortcut"><?php _e( 'Skip to main content' ); ?></a>
|
||||
<a href="#wp-toolbar" class="screen-reader-shortcut"><?php _e( 'Skip to toolbar' ); ?></a>
|
||||
<div id="adminmenuback"></div>
|
||||
<div id="adminmenuwrap">
|
||||
<ul id="adminmenu" role="navigation">
|
||||
<ul id="adminmenu">
|
||||
|
||||
<?php
|
||||
|
||||
@ -236,3 +239,4 @@ do_action( 'adminmenu' );
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -363,9 +363,11 @@ class WP_Admin_Bar {
|
||||
}
|
||||
|
||||
?>
|
||||
<div id="wpadminbar" class="<?php echo $class; ?>" role="navigation">
|
||||
<a class="screen-reader-shortcut" href="#wp-toolbar" tabindex="1"><?php _e('Skip to toolbar'); ?></a>
|
||||
<div class="quicklinks" id="wp-toolbar" role="navigation" aria-label="<?php esc_attr_e('Top navigation toolbar.'); ?>" tabindex="0">
|
||||
<div id="wpadminbar" class="<?php echo $class; ?>">
|
||||
<?php if ( ! is_admin() ) { ?>
|
||||
<a class="screen-reader-shortcut" href="#wp-toolbar" tabindex="1"><?php _e( 'Skip to toolbar' ); ?></a>
|
||||
<?php } ?>
|
||||
<div class="quicklinks" id="wp-toolbar" role="navigation" aria-label="<?php esc_attr_e( 'Toolbar' ); ?>" tabindex="0">
|
||||
<?php foreach ( $root->children as $group ) {
|
||||
$this->_render_group( $group );
|
||||
} ?>
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.2-beta3-31954';
|
||||
$wp_version = '4.2-beta3-31955';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user