mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
Accessibility: Add missing label for the theme upload input.
See [11152] for plugins. Props mercime. Fixes #35113. Built from https://develop.svn.wordpress.org/trunk@35958 git-svn-id: http://core.svn.wordpress.org/trunk@35922 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
fcd35518d9
commit
f9f77d86d8
@ -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
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.5-alpha-35957';
|
||||
$wp_version = '4.5-alpha-35958';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user