Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#24460 closed defect (bug) (fixed)

Fatal error when adding non-existent user to a site

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

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

Download all attachments as: .zip

Change History (2)

@duck_
13 years ago

#1 @SergeyBiryukov
13 years ago

  • Owner set to SergeyBiryukov
  • Resolutionfixed
  • Status newclosed

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.