Changeset 53839
- Timestamp:
- 08/05/2022 05:58:01 AM (2 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/plugin-install.php
r52936 r53839 343 343 <div class="upload-plugin"> 344 344 <p class="install-help"><?php _e( 'If you have a plugin in a .zip format, you may install or update it by uploading it here.' ); ?></p> 345 <form method="post" enctype="multipart/form-data" class="wp-upload-form" action="<?php echo self_admin_url( 'update.php?action=upload-plugin'); ?>">345 <form method="post" enctype="multipart/form-data" class="wp-upload-form" action="<?php echo esc_url( self_admin_url( 'update.php?action=upload-plugin' ) ); ?>"> 346 346 <?php wp_nonce_field( 'plugin-upload' ); ?> 347 347 <label class="screen-reader-text" for="pluginzip"><?php _e( 'Plugin zip file' ); ?></label> -
trunk/src/wp-admin/includes/theme-install.php
r53639 r53839 183 183 ?> 184 184 <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> 185 <form method="post" enctype="multipart/form-data" class="wp-upload-form" action="<?php echo self_admin_url( 'update.php?action=upload-theme'); ?>">185 <form method="post" enctype="multipart/form-data" class="wp-upload-form" action="<?php echo esc_url( self_admin_url( 'update.php?action=upload-theme' ) ); ?>"> 186 186 <?php wp_nonce_field( 'theme-upload' ); ?> 187 187 <label class="screen-reader-text" for="themezip"><?php _e( 'Theme zip file' ); ?></label> -
trunk/src/wp-admin/plugins.php
r52978 r53839 727 727 if ( ( ! is_multisite() || is_network_admin() ) && current_user_can( 'install_plugins' ) ) { 728 728 ?> 729 <a href="<?php echo self_admin_url( 'plugin-install.php'); ?>" class="page-title-action"><?php echo esc_html_x( 'Add New', 'plugin' ); ?></a>729 <a href="<?php echo esc_url( self_admin_url( 'plugin-install.php' ) ); ?>" class="page-title-action"><?php echo esc_html_x( 'Add New', 'plugin' ); ?></a> 730 730 <?php 731 731 } -
trunk/src/wp-admin/update-core.php
r53700 r53839 918 918 </div> 919 919 <script type="text/javascript"> 920 window.location = '<?php echo self_admin_url( 'about.php?updated'); ?>';920 window.location = '<?php echo esc_url( self_admin_url( 'about.php?updated' ) ); ?>'; 921 921 </script> 922 922 <?php
Note: See TracChangeset
for help on using the changeset viewer.