Make WordPress Core

Ticket #39252: 39252.diff

File 39252.diff, 678 bytes (added by dlh, 8 years ago)
  • src/wp-includes/admin-bar.php

     
    703703        if ( isset( $actions['post-new.php?post_type=content'] ) )
    704704                $actions['post-new.php?post_type=content'][1] = 'add-new-content';
    705705
    706         if ( current_user_can( 'create_users' ) || current_user_can( 'promote_users' ) )
     706        if ( current_user_can( 'create_users' ) || ( is_multisite() && current_user_can( 'promote_users' ) ) ) {
    707707                $actions[ 'user-new.php' ] = array( _x( 'User', 'add new from admin bar' ), 'new-user' );
     708        }
    708709
    709710        if ( ! $actions )
    710711                return;