mirror of
git://develop.git.wordpress.org/
synced 2025-02-27 10:02:43 +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: https://develop.svn.wordpress.org/trunk@21143 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
4c406cc8ad
commit
4374f93904
@ -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…
x
Reference in New Issue
Block a user