Ticket #39252: 39252.diff
File 39252.diff, 678 bytes (added by , 8 years ago) |
---|
-
src/wp-includes/admin-bar.php
703 703 if ( isset( $actions['post-new.php?post_type=content'] ) ) 704 704 $actions['post-new.php?post_type=content'][1] = 'add-new-content'; 705 705 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' ) ) ) { 707 707 $actions[ 'user-new.php' ] = array( _x( 'User', 'add new from admin bar' ), 'new-user' ); 708 } 708 709 709 710 if ( ! $actions ) 710 711 return;