Make WordPress Core


Ignore:
Timestamp:
11/18/2011 12:12:57 AM (15 years ago)
Author:
koopersmith
Message:

Allow linkless items in the admin bar. Improve non-jQuery admin bar tabbing. fixes #19277, #19149, #19164, #15519. see #18197, #19088.

File:
1 edited

Legend:

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

    r19284 r19328  
    7575        $wp_admin_bar->add_menu( array(
    7676                'id'    => 'wp-logo',
    77                 'title' => ' ',
     77                'title' => '<span class="ab-wp-logo"></span>',
    7878                'href'  => admin_url( 'about.php' ),
    79                 'meta'  => array(
    80                         'class' => 'wp-admin-bar-logo',
    81                 ),
    8279        ) );
    8380
    … …  
    585582 */
    586583function wp_admin_bar_search_menu( $wp_admin_bar ) {
    587         $form  = '<div id="adminbarsearch-wrap">';
    588         $form .= '<form action="' . home_url() . '" method="get" id="adminbarsearch">';
    589         $form .= '<input class="adminbar-input" name="s" id="adminbar-search" tabindex="1" ';
    590         $form .= 'type="text" value="" maxlength="150" placeholder="' . esc_attr__( 'Search' ) . '" onclick="return false;" />';
     584        $form  = '<form action="' . home_url() . '" method="get" id="adminbarsearch">';
     585        $form .= '<input class="adminbar-input" name="s" id="adminbar-search" tabindex="10" ';
     586        $form .= 'type="text" value="" maxlength="150" placeholder="' . esc_attr__( 'Search' ) . '" />';
    591587        $form .= '<input type="submit" class="adminbar-button" value="' . __('Search') . '"/>';
    592588        $form .= '</form>';
    593         $form .= '</div>';
    594589
    595590        $wp_admin_bar->add_menu( array(
    596591                'id'    => 'search',
    597592                'title' => $form,
    598                 'href'  => '#',
    599593                'meta'  => array(
    600                         'class'   => 'admin-bar-search'
     594                        'class'    => 'admin-bar-search',
     595                        'tabindex' => -1,
    601596                )
    602597        ) );
Note: See TracChangeset for help on using the changeset viewer.