Make WordPress Core

Opened 7 years ago

Closed 6 years ago

#42249 closed defect (bug) (duplicate)

"Add Existing Users" -Form on Multisite still shows up after remove Capabilities to see it

Reported by: tqmtqm89's profile tqmtqm89 Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.8.2
Component: Networks and Sites Keywords: reporter-feedback
Focuses: multisite Cc:

Description (last modified by jeremyfelt)

Hey there,
i got a Multisite where it should be possible for Administrators (not Super-Admins) to add new Users to their subdomain. But i'd liked to disable the option to add existing users.

So i customized the capabilities for my plan and it seems i have found a bug cause it just worked half the way.

From before changing the capabilities the state was:

After change of capabilities just the headline was removed (i highlighted it in the screenshot above)

So what i wanted to create was something like

So i moved deep into WordPress-Core and found the possible bug and fixed it so far for me:

i added the if clause around the form that check the $do_both on line 326 + 377 on the wp-admin/user-new.php.

At the moment in line 314 is it checked but only hide / show the headline of add existing users but have no influence to the form.

Greetings from Paderborn

Change History (2)

#1 @swissspidy
7 years ago

  • Keywords reporter-feedback added

Hey there,

Welcome to Trac!

This sounds like a duplicate of #37836. Can you please try WordPress 4.9 Beta 2 to see if the bug is resolved? Thanks!

#2 @jeremyfelt
6 years ago

  • Description modified (diff)
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #37836.

Note: See TracTickets for help on using tickets.