Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#15868 closed defect (bug) (fixed)

Undefined property: stdClass::$id in wp-admin\network\edit.php

Reported by: ocean90's profile ocean90 Owned by:
Milestone: 3.1 Priority: normal
Severity: normal Version: 3.1
Component: Users Keywords: has-patch commit
Focuses: Cc:

Description

Go to network/users and delete a user:

Notice: Undefined property: stdClass::$id in H:\xampplite\htdocs\wp\wp-admin\network\edit.php on line 61

Notice: Undefined property: stdClass::$id in H:\xampplite\htdocs\wp\wp-admin\network\edit.php on line 62

Attachments (1)

15868.patch (683 bytes) - added by ocean90 14 years ago.
relativ

Download all attachments as: .zip

Change History (7)

#1 follow-up: @ocean90
14 years ago

Maybe we can use wp_dropdown_user here?

#2 in reply to: ↑ 1 @scribu
14 years ago

  • Keywords commit added

Patch works fine.

Replying to ocean90:

Maybe we can use wp_dropdown_user here?

We could, but not in 3.1

@ocean90
14 years ago

relativ

#3 @ryan
14 years ago

Looks good.

#4 follow-up: @nacin
14 years ago

$user should be a WP_User object, no? According to the WP_User docs, $id should still be set (though deprecated, with ID being canonical). What am I missing?

#5 in reply to: ↑ 4 @scribu
14 years ago

No, it's a stdClass now, for performance reasons.

#6 @nacin
14 years ago

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

(In [17042]) s/id/ID/. props ocean90, fixes #15868.

Note: See TracTickets for help on using tickets.