From 893c5808315a2cdc9c7d8b14f3bda03b975c4f6f Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Sun, 14 Jun 2020 17:03:10 +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. Built from https://develop.svn.wordpress.org/trunk@48042 git-svn-id: http://core.svn.wordpress.org/trunk@47809 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/user-new.php | 2 ++ wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-admin/user-new.php b/wp-admin/user-new.php index 06ba7efd9a..6afdcbeb96 100644 --- a/wp-admin/user-new.php +++ b/wp-admin/user-new.php @@ -575,6 +575,7 @@ if ( current_user_can( 'create_users' ) ) { + + diff --git a/wp-includes/version.php b/wp-includes/version.php index e46cc4b52f..65de307f91 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.5-alpha-48041'; +$wp_version = '5.5-alpha-48042'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.