Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#31097 closed defect (bug) (fixed)

wp_update_user() - PHP notice when ID not specified.

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

Description

When using wp_update_user() with no ID specified, a WP_Error is thrown, indicating : Invalid User ID..

This is fine, however, a notice for invalid $userdata array key ID is still being thrown as well.

This appears to be a really old issue - I was able to encounter it in 3.1.

Attachments (1)

31097.patch (435 bytes ) - added by tyxla 12 years ago.
Making sure that ID is set before using it.

Download all attachments as: .zip

Change History (6)

#1 @tyxla
12 years ago

  • Keywords needs-patch added

@tyxla
12 years ago

Making sure that ID is set before using it.

#3 @tyxla
12 years ago

  • Keywords has-patch added; needs-patch removed

#4 @SergeyBiryukov
12 years ago

  • Milestone Awaiting Review4.2

#5 @SergeyBiryukov
12 years ago

  • Resolutionfixed
  • Status newclosed

[31269] missed the ticket.

Note: See TracTickets for help on using tickets.