mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-05-20 11:14:28 +00:00
Accessibility: Add missing label for the theme upload input.
See [11152] for plugins. Props mercime. Fixes #35113. git-svn-id: https://develop.svn.wordpress.org/trunk@35958 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -285,8 +285,8 @@ function install_plugins_upload() {
|
||||
<div class="upload-plugin">
|
||||
<p class="install-help"><?php _e('If you have a plugin in a .zip format, you may install it by uploading it here.'); ?></p>
|
||||
<form method="post" enctype="multipart/form-data" class="wp-upload-form" action="<?php echo self_admin_url('update.php?action=upload-plugin'); ?>">
|
||||
<?php wp_nonce_field( 'plugin-upload'); ?>
|
||||
<label class="screen-reader-text" for="pluginzip"><?php _e('Plugin zip file'); ?></label>
|
||||
<?php wp_nonce_field( 'plugin-upload' ); ?>
|
||||
<label class="screen-reader-text" for="pluginzip"><?php _e( 'Plugin zip file' ); ?></label>
|
||||
<input type="file" id="pluginzip" name="pluginzip" />
|
||||
<?php submit_button( __( 'Install Now' ), 'button', 'install-plugin-submit', false ); ?>
|
||||
</form>
|
||||
|
||||
@@ -142,8 +142,9 @@ function install_themes_upload() {
|
||||
?>
|
||||
<p class="install-help"><?php _e('If you have a theme in a .zip format, you may install it by uploading it here.'); ?></p>
|
||||
<form method="post" enctype="multipart/form-data" class="wp-upload-form" action="<?php echo self_admin_url('update.php?action=upload-theme'); ?>">
|
||||
<?php wp_nonce_field( 'theme-upload'); ?>
|
||||
<input type="file" name="themezip" />
|
||||
<?php wp_nonce_field( 'theme-upload' ); ?>
|
||||
<label class="screen-reader-text" for="themezip"><?php _e( 'Theme zip file' ); ?></label>
|
||||
<input type="file" id="themezip" name="themezip" />
|
||||
<?php submit_button( __( 'Install Now' ), 'button', 'install-theme-submit', false ); ?>
|
||||
</form>
|
||||
<?php
|
||||
|
||||
Reference in New Issue
Block a user