Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#24460 closed defect (bug) (fixed)

Fatal error when adding non-existent user to a site

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

Description

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_ 12 years ago.

Download all attachments as: .zip

Change History (2)

@duck_
12 years ago

#1 @SergeyBiryukov
12 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.