Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#39202 closed enhancement (fixed)

Replace is_super_admin() checks with current_user_can( 'manage_network_users' ) in wp-admin/user-new.php (lines 40 and 316)

Reported by: dhanendran Owned by: flixos90
Priority: normal Milestone: 4.8
Component: Role/Capability Version:
Severity: normal Keywords: has-patch
Cc: Focuses: multisite

Description

This is part of the https://core.trac.wordpress.org/ticket/37616#comment:26 task. There are 2 is_super_admin() checks with current_user_can( 'manage_network_users' ) in wp-admin/user-new.php (lines 40 and 316).

Attachments (1)

39202.patch (1.0 KB ) - added by dhanendran 10 years ago.

Download all attachments as: .zip

Change History (3)

@dhanendran
10 years ago

#1 @flixos90
10 years ago

  • Keywords has-patch added
  • Milestone Awaiting Review4.8
  • Owner set to flixos90
  • Status newreviewing
  • Type defect (bug)enhancement

Hi @dhanendran, and thanks for the patch - looks good!

#2 @flixos90
10 years ago

  • Resolutionfixed
  • Status reviewingclosed

In 39935:

Multisite: Replace is_super_admin() with manage_network_users when trying to add an existing user via username.

Props dhanendran.
Fixes #39202. See #37616.

Note: See TracTickets for help on using tickets.