Ticket #21471: 21471.patch
File 21471.patch, 2.5 KB (added by , 12 years ago) |
---|
-
wp-includes/admin-bar.php
638 638 return; 639 639 640 640 $form = '<form action="' . esc_url( home_url( '/' ) ) . '" method="get" id="adminbarsearch">'; 641 $form .= '<input class="adminbar-input" name="s" id="adminbar-search" t abindex="10" type="text" value="" maxlength="150" />';641 $form .= '<input class="adminbar-input" name="s" id="adminbar-search" type="text" value="" maxlength="150" />'; 642 642 $form .= '<input type="submit" class="adminbar-button" value="' . __('Search') . '"/>'; 643 643 $form .= '</form>'; 644 644 -
wp-includes/class-wp-admin-bar.php
348 348 349 349 ?> 350 350 <div id="wpadminbar" class="<?php echo $class; ?>" role="navigation"> 351 <div class="quicklinks"> 351 <a id="wpadminbar-shortcut" href="#wp-toolbar" tabindex="1"><?php _e('Skip to toolbar'); ?></a> 352 <div class="quicklinks" id="wp-toolbar" role="navigation" aria-label="<?php esc_attr_e('Top navigation toolbar.'); ?>"> 352 353 <?php foreach ( $root->children as $group ) { 353 354 $this->_render_group( $group ); 354 355 } ?> … … 395 396 $is_parent = ! empty( $node->children ); 396 397 $has_link = ! empty( $node->href ); 397 398 398 $tabindex = isset( $node->meta['tabindex'] ) ? (int) $node->meta['tabindex'] : 10; 399 $tabindex = isset( $node->meta['tabindex'] ) ? (int) $node->meta['tabindex'] : ''; 400 $aria_attributes = $tabindex ? 'tabindex="' . $tabindex . '"' : ''; 399 401 400 402 $menuclass = ''; 401 $aria_attributes = 'tabindex="' . $tabindex . '"';402 403 403 404 if ( $is_parent ) { 404 405 $menuclass = 'menupop '; -
wp-includes/css/admin-bar.dev.css
606 606 } 607 607 } 608 608 609 /* Skip link */ 610 #wpadminbar #wpadminbar-shortcut { 611 position: absolute; 612 left: -1000em; 613 top: -1000em; 614 height: 1px; 615 width: 1px; 616 overflow: hidden; 617 padding: 0; 618 margin: 0; 619 } 620 621 #wpadminbar #wpadminbar-shortcut:focus { 622 left: 0; 623 top: 0; 624 height: auto; 625 width: auto; 626 display: block; 627 padding: 10px 15px; 628 background: #fff; 629 color: #000; 630 outline: none; 631 z-index: 100000; 632 text-shadow: none; 633 } 634 609 635 /** 610 636 * IE 6-targeted rules 611 637 */