mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Administration: Consistently escape network_admin_url() links.
Follow-up to [51177]. Props chintan1896, mukesh27. Fixes #53459. git-svn-id: https://develop.svn.wordpress.org/trunk@51189 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -484,7 +484,7 @@ function wp_network_dashboard_right_now() {
|
||||
do_action( 'wpmuadminresult' );
|
||||
?>
|
||||
|
||||
<form action="<?php echo network_admin_url( 'users.php' ); ?>" method="get">
|
||||
<form action="<?php echo esc_url( network_admin_url( 'users.php' ) ); ?>" method="get">
|
||||
<p>
|
||||
<label class="screen-reader-text" for="search-users"><?php _e( 'Search Users' ); ?></label>
|
||||
<input type="search" name="s" value="" size="30" autocomplete="off" id="search-users" />
|
||||
@@ -492,7 +492,7 @@ function wp_network_dashboard_right_now() {
|
||||
</p>
|
||||
</form>
|
||||
|
||||
<form action="<?php echo network_admin_url( 'sites.php' ); ?>" method="get">
|
||||
<form action="<?php echo esc_url( network_admin_url( 'sites.php' ) ); ?>" method="get">
|
||||
<p>
|
||||
<label class="screen-reader-text" for="search-sites"><?php _e( 'Search Sites' ); ?></label>
|
||||
<input type="search" name="s" value="" size="30" autocomplete="off" id="search-sites" />
|
||||
|
||||
@@ -972,7 +972,7 @@ function wp_import_upload_form( $action ) {
|
||||
?>
|
||||
<div class="error"><p><?php _e( 'Before you can upload your import file, you will need to fix the following error:' ); ?></p>
|
||||
<p><strong><?php echo $upload_dir['error']; ?></strong></p></div>
|
||||
<?php
|
||||
<?php
|
||||
else :
|
||||
?>
|
||||
<form enctype="multipart/form-data" id="import-upload-form" method="post" class="wp-upload-form" action="<?php echo esc_url( wp_nonce_url( $action, 'import-upload' ) ); ?>">
|
||||
|
||||
Reference in New Issue
Block a user