From 90d8fdb5bb9a58b3bf1d56749bf9634edd0dbd79 Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Sun, 14 Jun 2020 17:01:51 +0000 Subject: [PATCH] Users: On the 'Add New User' screen, don't show the roles dropdown if the current user can't promote other users. Fixes #50345. git-svn-id: https://develop.svn.wordpress.org/trunk@48042 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/user-new.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wp-admin/user-new.php b/src/wp-admin/user-new.php index 06ba7efd9a..6afdcbeb96 100644 --- a/src/wp-admin/user-new.php +++ b/src/wp-admin/user-new.php @@ -575,6 +575,7 @@ if ( current_user_can( 'create_users' ) ) { + +