mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +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:
@@ -201,7 +201,7 @@ printf(
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
<form method="post" action="<?php echo network_admin_url( 'site-new.php?action=add-site' ); ?>" novalidate="novalidate">
|
||||
<form method="post" action="<?php echo esc_url( network_admin_url( 'site-new.php?action=add-site' ) ); ?>" novalidate="novalidate">
|
||||
<?php wp_nonce_field( 'add-blog', '_wpnonce_add-blog' ); ?>
|
||||
<table class="form-table" role="presentation">
|
||||
<tr class="form-field form-required">
|
||||
|
||||
@@ -330,7 +330,7 @@ if ( current_user_can( 'promote_users' ) && apply_filters( 'show_network_site_us
|
||||
if ( current_user_can( 'create_users' ) && apply_filters( 'show_network_site_users_add_new_form', true ) ) :
|
||||
?>
|
||||
<h2 id="add-new-user"><?php _e( 'Add New User' ); ?></h2>
|
||||
<form action="<?php echo network_admin_url( 'site-users.php?action=newuser' ); ?>" id="newuser" method="post">
|
||||
<form action="<?php echo esc_url( network_admin_url( 'site-users.php?action=newuser' ) ); ?>" id="newuser" method="post">
|
||||
<input type="hidden" name="id" value="<?php echo esc_attr( $id ); ?>" />
|
||||
<table class="form-table" role="presentation">
|
||||
<tr>
|
||||
|
||||
@@ -366,7 +366,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
<h1 class="wp-heading-inline"><?php _e( 'Sites' ); ?></h1>
|
||||
|
||||
<?php if ( current_user_can( 'create_sites' ) ) : ?>
|
||||
<a href="<?php echo network_admin_url( 'site-new.php' ); ?>" class="page-title-action"><?php echo esc_html_x( 'Add New', 'site' ); ?></a>
|
||||
<a href="<?php echo esc_url( network_admin_url( 'site-new.php' ) ); ?>" class="page-title-action"><?php echo esc_html_x( 'Add New', 'site' ); ?></a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php
|
||||
|
||||
@@ -122,7 +122,7 @@ if ( isset( $add_user_errors ) && is_wp_error( $add_user_errors ) ) {
|
||||
?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<form action="<?php echo network_admin_url( 'user-new.php?action=add-user' ); ?>" id="adduser" method="post" novalidate="novalidate">
|
||||
<form action="<?php echo esc_url( network_admin_url( 'user-new.php?action=add-user' ) ); ?>" id="adduser" method="post" novalidate="novalidate">
|
||||
<table class="form-table" role="presentation">
|
||||
<tr class="form-field form-required">
|
||||
<th scope="row"><label for="username"><?php _e( 'Username' ); ?></label></th>
|
||||
|
||||
@@ -273,8 +273,8 @@ if ( isset( $_REQUEST['updated'] ) && 'true' == $_REQUEST['updated'] && ! empty(
|
||||
<?php
|
||||
if ( current_user_can( 'create_users' ) ) :
|
||||
?>
|
||||
<a href="<?php echo network_admin_url( 'user-new.php' ); ?>" class="page-title-action"><?php echo esc_html_x( 'Add New', 'user' ); ?></a>
|
||||
<?php
|
||||
<a href="<?php echo esc_url( network_admin_url( 'user-new.php' ) ); ?>" class="page-title-action"><?php echo esc_html_x( 'Add New', 'user' ); ?></a>
|
||||
<?php
|
||||
endif;
|
||||
|
||||
if ( strlen( $usersearch ) ) {
|
||||
|
||||
Reference in New Issue
Block a user