Make WordPress Core


Ignore:
Timestamp:
05/07/2017 05:41:24 PM (7 years ago)
Author:
johnbillion
Message:

Users: Correct a permission check when showing the User item in the + New admin toolbar menu.

Props dlh
Fixes #39252

File:
1 edited

Legend:

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

    r39948 r40581  
    719719        $actions['post-new.php?post_type=content'][1] = 'add-new-content';
    720720
    721     if ( current_user_can( 'create_users' ) || current_user_can( 'promote_users' ) )
     721    if ( current_user_can( 'create_users' ) || ( is_multisite() && current_user_can( 'promote_users' ) ) ) {
    722722        $actions[ 'user-new.php' ] = array( _x( 'User', 'add new from admin bar' ), 'new-user' );
     723    }
    723724
    724725    if ( ! $actions )
Note: See TracChangeset for help on using the changeset viewer.