From 90583c83601489d7d76f09870a58c32f6c2b65ad Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Sun, 23 Jul 2017 01:13:13 +0000 Subject: [PATCH] Users: Don't show the 'Add Existing User' form on the 'Add New User' screen to users without the `promote_users` capability. Props bseddon, Mista-Flo Fixes #37836 git-svn-id: https://develop.svn.wordpress.org/trunk@41122 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/user-new.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/user-new.php b/src/wp-admin/user-new.php index 1ea39ba950..b6b4c5f08f 100644 --- a/src/wp-admin/user-new.php +++ b/src/wp-admin/user-new.php @@ -310,7 +310,7 @@ if ( ! empty( $messages ) ) {
' . __( 'Add Existing User' ) . ''; if ( ! current_user_can( 'manage_network_users' ) ) {