Make WordPress Core


Ignore:
Timestamp:
06/26/2012 08:55:46 PM (14 years ago)
Author:
markjaquith
Message:

Autofocus the search box on the Theme and Plugin installation pages. Faster flow for people who know what they are looking for. props SergeyBiryukov. fixes #21080. see #21027.

File:
1 edited

Legend:

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

    r20754 r21143  
    129129                </select>
    130130                <?php endif; ?>
    131                 <input type="search" name="s" value="<?php echo esc_attr($term) ?>" />
     131                <input type="search" name="s" value="<?php echo esc_attr($term) ?>" autofocus="autofocus" />
    132132                <label class="screen-reader-text" for="plugin-search-input"><?php _e('Search Plugins'); ?></label>
    133133                <?php submit_button( __( 'Search Plugins' ), 'button', 'plugin-search-input', false ); ?>
Note: See TracChangeset for help on using the changeset viewer.