WordPress.org

Make WordPress Core

Changeset 21143


Ignore:
Timestamp:
06/26/2012 08:55:46 PM (6 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.

Location:
trunk/wp-admin/includes
Files:
2 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 ); ?>
  • trunk/wp-admin/includes/theme-install.php

    r20812 r21143  
    6565    </select>
    6666    <?php endif; ?>
    67     <input type="search" name="s" size="30" value="<?php echo esc_attr($term) ?>" />
     67    <input type="search" name="s" size="30" value="<?php echo esc_attr($term) ?>" autofocus="autofocus" />
    6868    <?php submit_button( __( 'Search' ), 'button', 'search', false ); ?>
    6969</form>
Note: See TracChangeset for help on using the changeset viewer.