Use `admin_url()` for "Add New" links in `wp-admin/users.php`.
Props johnjamesjacoby. Fixes #36186. git-svn-id: https://develop.svn.wordpress.org/trunk@36902 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
96520194c7
commit
11c47a6cb5
|
@ -484,9 +484,9 @@ if ( ! empty($messages) ) {
|
||||||
<?php
|
<?php
|
||||||
echo esc_html( $title );
|
echo esc_html( $title );
|
||||||
if ( current_user_can( 'create_users' ) ) { ?>
|
if ( current_user_can( 'create_users' ) ) { ?>
|
||||||
<a href="user-new.php" class="page-title-action"><?php echo esc_html_x( 'Add New', 'user' ); ?></a>
|
<a href="<?php echo admin_url( 'user-new.php' ); ?>" class="page-title-action"><?php echo esc_html_x( 'Add New', 'user' ); ?></a>
|
||||||
<?php } elseif ( is_multisite() && current_user_can( 'promote_users' ) ) { ?>
|
<?php } elseif ( is_multisite() && current_user_can( 'promote_users' ) ) { ?>
|
||||||
<a href="user-new.php" class="page-title-action"><?php echo esc_html_x( 'Add Existing', 'user' ); ?></a>
|
<a href="<?php echo admin_url( 'user-new.php' ); ?>" class="page-title-action"><?php echo esc_html_x( 'Add Existing', 'user' ); ?></a>
|
||||||
<?php }
|
<?php }
|
||||||
|
|
||||||
if ( strlen( $usersearch ) ) {
|
if ( strlen( $usersearch ) ) {
|
||||||
|
|
Loading…
Reference in New Issue