Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#24460 closed defect (bug) (fixed)

Fatal error when adding non-existent user to a site

Reported by: duck_ Owned by: SergeyBiryukov
Milestone: 3.6 Priority: normal
Severity: normal Version: 3.6
Component: Network Admin Keywords: has-patch
Focuses: multisite Cc:


Attempting to use site-users.php in the network admin to add a non-existent user to a site results in a fatal error since the call to get_user_by() will return false.

Fatal error: Call to a member function exists() on a non-object in wp-admin/network/site-users.php on line 89

Introduced in [23974]

Attachments (1)

24460.diff (536 bytes) - added by duck_ 8 years ago.

Download all attachments as: .zip

Change History (2)

8 years ago

#1 @SergeyBiryukov
8 years ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 24509:

Avoid a fatal error when adding a non-existent user to a site. props duck_. fixes #24460.

Note: See TracTickets for help on using tickets.