Administration: Consistently escape network_admin_url() links.
Follow-up to [51177]. Props chintan1896, mukesh27. Fixes #53459. Built from https://develop.svn.wordpress.org/trunk@51189 git-svn-id: http://core.svn.wordpress.org/trunk@50798 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user