WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/09/2016 07:08:58 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Use admin_url() for "Add New" links in wp-admin/users.php.

Props johnjamesjacoby.
Fixes #36186.

File:
1 edited

Legend:

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

    r36640 r36902  
    485485echo esc_html( $title );
    486486if ( current_user_can( 'create_users' ) ) { ?>
    487     <a href="user-new.php" class="page-title-action"><?php echo esc_html_x( 'Add New', 'user' ); ?></a>
     487    <a href="<?php echo admin_url( 'user-new.php' ); ?>" class="page-title-action"><?php echo esc_html_x( 'Add New', 'user' ); ?></a>
    488488<?php } elseif ( is_multisite() && current_user_can( 'promote_users' ) ) { ?>
    489     <a href="user-new.php" class="page-title-action"><?php echo esc_html_x( 'Add Existing', 'user' ); ?></a>
     489    <a href="<?php echo admin_url( 'user-new.php' ); ?>" class="page-title-action"><?php echo esc_html_x( 'Add Existing', 'user' ); ?></a>
    490490<?php }
    491491
Note: See TracChangeset for help on using the changeset viewer.