Make WordPress Core


Ignore:
Timestamp:
06/21/2021 04:29:18 AM (3 years ago)
Author:
SergeyBiryukov
Message:

Administration: Consistently escape network_admin_url() links.

Follow-up to [51177].

Props chintan1896, mukesh27.
Fixes #53459.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/network/sites.php

    r49944 r51189  
    367367
    368368<?php if ( current_user_can( 'create_sites' ) ) : ?>
    369     <a href="<?php echo network_admin_url( 'site-new.php' ); ?>" class="page-title-action"><?php echo esc_html_x( 'Add New', 'site' ); ?></a>
     369    <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>
    370370<?php endif; ?>
    371371
Note: See TracChangeset for help on using the changeset viewer.