Make WordPress Core


Ignore:
Timestamp:
11/07/2011 08:38:38 PM (13 years ago)
Author:
azaozz
Message:

Fix a:focus styling and backwards tabbing, add tabindex arg for <a>, see #19088

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-admin-bar.php

    r19162 r19207  
    144144        if ( ! empty( $node->meta['class'] ) )
    145145            $menuclass .= ' ' . $node->meta['class'];
     146
     147        $tabindex = !empty($node->meta['tabindex']) ? $node->meta['tabindex'] : 10;
    146148        ?>
    147149
    148150        <li id="<?php echo esc_attr( "wp-admin-bar-{$node->id}" ); ?>" class="<?php echo esc_attr( $menuclass ); ?>">
    149             <a tabindex="1" href="<?php echo esc_url( $node->href ) ?>"<?php
     151            <a tabindex="<?php echo (int) $tabindex; ?>" href="<?php echo esc_url( $node->href ) ?>"<?php
    150152                if ( ! empty( $node->meta['onclick'] ) ) :
    151153                    ?> onclick="<?php echo esc_js( $node->meta['onclick'] ); ?>"<?php
Note: See TracChangeset for help on using the changeset viewer.