WordPress.org

Make WordPress Core

Ticket #21080: 21080.patch

File 21080.patch, 1.4 KB (added by SergeyBiryukov, 6 years ago)
  • wp-admin/includes/plugin-install.php

     
    128128                        <option value="tag"<?php selected('tag', $type) ?>><?php _ex('Tag', 'Plugin Installer'); ?></option>
    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 ); ?>
    134134        </form><?php
  • wp-admin/includes/theme-install.php

     
    6464        <option value="tag" <?php selected('tag', $type) ?>><?php _ex('Tag', 'Theme Installer'); ?></option>
    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>
    7070<?php