mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 07:22:01 +01:00
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.
git-svn-id: http://core.svn.wordpress.org/trunk@21143 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
138b38fd60
commit
06bc3bf328
@ -128,7 +128,7 @@ function install_search_form( $type_selector = true ) {
|
||||
<option value="tag"<?php selected('tag', $type) ?>><?php _ex('Tag', 'Plugin Installer'); ?></option>
|
||||
</select>
|
||||
<?php endif; ?>
|
||||
<input type="search" name="s" value="<?php echo esc_attr($term) ?>" />
|
||||
<input type="search" name="s" value="<?php echo esc_attr($term) ?>" autofocus="autofocus" />
|
||||
<label class="screen-reader-text" for="plugin-search-input"><?php _e('Search Plugins'); ?></label>
|
||||
<?php submit_button( __( 'Search Plugins' ), 'button', 'plugin-search-input', false ); ?>
|
||||
</form><?php
|
||||
|
@ -64,7 +64,7 @@ function install_theme_search_form( $type_selector = true ) {
|
||||
<option value="tag" <?php selected('tag', $type) ?>><?php _ex('Tag', 'Theme Installer'); ?></option>
|
||||
</select>
|
||||
<?php endif; ?>
|
||||
<input type="search" name="s" size="30" value="<?php echo esc_attr($term) ?>" />
|
||||
<input type="search" name="s" size="30" value="<?php echo esc_attr($term) ?>" autofocus="autofocus" />
|
||||
<?php submit_button( __( 'Search' ), 'button', 'search', false ); ?>
|
||||
</form>
|
||||
<?php
|
||||
|
Loading…
Reference in New Issue
Block a user