Make WordPress Core


Ignore:
Timestamp:
12/16/2015 07:55:31 AM (9 years ago)
Author:
SergeyBiryukov
Message:

Accessibility: Add missing label for the theme upload input.

See [11152] for plugins.

Props mercime.
Fixes #35113.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/theme-install.php

    r32672 r35958  
    143143<p class="install-help"><?php _e('If you have a theme in a .zip format, you may install it by uploading it here.'); ?></p>
    144144<form method="post" enctype="multipart/form-data" class="wp-upload-form" action="<?php echo self_admin_url('update.php?action=upload-theme'); ?>">
    145     <?php wp_nonce_field( 'theme-upload'); ?>
    146     <input type="file" name="themezip" />
     145    <?php wp_nonce_field( 'theme-upload' ); ?>
     146    <label class="screen-reader-text" for="themezip"><?php _e( 'Theme zip file' ); ?></label>
     147    <input type="file" id="themezip" name="themezip" />
    147148    <?php submit_button( __( 'Install Now' ), 'button', 'install-theme-submit', false ); ?>
    148149</form>
Note: See TracChangeset for help on using the changeset viewer.