mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
Coding standards: Properly escape URLs returned by self_admin_url() calls.
Props krishaweb, audrasjb, SergeyBiryukov. Fixes #56329. git-svn-id: https://develop.svn.wordpress.org/trunk@53839 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -182,7 +182,7 @@ function install_themes_dashboard() {
|
||||
function install_themes_upload() {
|
||||
?>
|
||||
<p class="install-help"><?php _e( 'If you have a theme in a .zip format, you may install or update 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' ); ?>">
|
||||
<form method="post" enctype="multipart/form-data" class="wp-upload-form" action="<?php echo esc_url( self_admin_url( 'update.php?action=upload-theme' ) ); ?>">
|
||||
<?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" accept=".zip" />
|
||||
|
||||
Reference in New Issue
Block a user