WordPress.org

Make WordPress Core

Ticket #28856: 28856.patch

File 28856.patch, 920 bytes (added by joedolson, 6 years ago)

Associates label with input field correctly.

  • wp-admin/includes/plugin-install.php

     
    173173                        <option value="tag"<?php selected('tag', $type) ?>><?php _ex('Tag', 'Plugin Installer'); ?></option>
    174174                </select>
    175175                <?php endif; ?>
    176                 <input type="search" name="s" value="<?php echo esc_attr($term) ?>" autofocus="autofocus" />
    177                 <label class="screen-reader-text" for="plugin-search-input"><?php _e('Search Plugins'); ?></label>
     176                <input type="search" name="s" value="<?php echo esc_attr($term) ?>" id="plugin-search-field" autofocus="autofocus" />
     177                <label class="screen-reader-text" for="plugin-search-field"><?php _e('Search Plugins'); ?></label>
    178178                <?php submit_button( __( 'Search Plugins' ), 'button', 'plugin-search-input', false ); ?>
    179179        </form><?php
    180180}