Opened 18 months ago
Closed 18 months ago
#63129 closed defect (bug) (duplicate)
Fatal Error when Bulk Changing User Roles to "No Role for This Site"
| Reported by: | soyebsalar | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Users | Version: | 6.7.2 |
| Severity: | normal | Keywords: | needs-testing needs-patch |
| Cc: | Focuses: | administration |
Description
When bulk changing all users, including the admin, to "No Role for This Site," a fatal error occurs due to a call to has_cap() on a null object.
Steps to Reproduce:
Go to Dashboard → Users.
Bulk select all users, including the admin.
Select "No Role for This Site" from the Change role to… dropdown.
Click Change.
Observe the fatal error:Fatal error: Call to a member function has_cap() on null in https://www.yoursite.com/wp-admin/users.php on line 148
Attachments (2)
Change History (3)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
This issue is already being tracked in #63068.