mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 11:35:48 +00:00
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 Built from https://develop.svn.wordpress.org/trunk@41122 git-svn-id: http://core.svn.wordpress.org/trunk@40962 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1d71fa865c
commit
2d464d4286
@ -310,7 +310,7 @@ if ( ! empty( $messages ) ) {
|
||||
<div id="ajax-response"></div>
|
||||
|
||||
<?php
|
||||
if ( is_multisite() ) {
|
||||
if ( is_multisite() && current_user_can( 'promote_users' ) ) {
|
||||
if ( $do_both )
|
||||
echo '<h2 id="add-existing-user">' . __( 'Add Existing User' ) . '</h2>';
|
||||
if ( ! current_user_can( 'manage_network_users' ) ) {
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.9-alpha-41121';
|
||||
$wp_version = '4.9-alpha-41122';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
x
Reference in New Issue
Block a user