Make WordPress Core

Opened 16 years ago

Closed 16 years ago

#15868 closed defect (bug) (fixed)

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

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

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 16 years ago.
relativ

Download all attachments as: .zip

Change History (7)

#1 follow-up: @ocean90
16 years ago

Maybe we can use wp_dropdown_user here?

#2 in reply to: ↑ 1 @scribu
16 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
16 years ago

relativ

#3 @ryan
16 years ago

Looks good.

#4 follow-up: @nacin
16 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
16 years ago

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

#6 @nacin
16 years ago

  • Resolutionfixed
  • Status newclosed

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

Note: See TracTickets for help on using tickets.