Support for "tabbing" through the admin bar and admin menu, fixes #19088

git-svn-id: https://develop.svn.wordpress.org/trunk@19162 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2011-11-05 01:13:18 +00:00
parent 78e94523c8
commit bf02e004e0
11 changed files with 42 additions and 18 deletions

View File

@@ -146,7 +146,7 @@ class WP_Admin_Bar {
?>
<li id="<?php echo esc_attr( "wp-admin-bar-{$node->id}" ); ?>" class="<?php echo esc_attr( $menuclass ); ?>">
<a href="<?php echo esc_url( $node->href ) ?>"<?php
<a tabindex="1" href="<?php echo esc_url( $node->href ) ?>"<?php
if ( ! empty( $node->meta['onclick'] ) ) :
?> onclick="<?php echo esc_js( $node->meta['onclick'] ); ?>"<?php
endif;