WordPress.org

Make WordPress Core

Changeset 35958


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

Accessibility: Add missing label for the theme upload input.

See [11152] for plugins.

Props mercime.
Fixes #35113.

Location:
trunk/src/wp-admin/includes
Files:
2 edited

Legend:

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

    r35567 r35958  
    286286    <p class="install-help"><?php _e('If you have a plugin in a .zip format, you may install it by uploading it here.'); ?></p>
    287287    <form method="post" enctype="multipart/form-data" class="wp-upload-form" action="<?php echo self_admin_url('update.php?action=upload-plugin'); ?>">
    288         <?php wp_nonce_field( 'plugin-upload'); ?>
    289         <label class="screen-reader-text" for="pluginzip"><?php _e('Plugin zip file'); ?></label>
     288        <?php wp_nonce_field( 'plugin-upload' ); ?>
     289        <label class="screen-reader-text" for="pluginzip"><?php _e( 'Plugin zip file' ); ?></label>
    290290        <input type="file" id="pluginzip" name="pluginzip" />
    291291        <?php submit_button( __( 'Install Now' ), 'button', 'install-plugin-submit', false ); ?>
  • 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.