WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#31097 closed defect (bug) (fixed)

wp_update_user() - PHP notice when ID not specified.

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

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 6 years ago.
Making sure that ID is set before using it.

Download all attachments as: .zip

Change History (6)

#1 @tyxla
6 years ago

  • Keywords needs-patch added

@tyxla
6 years ago

Making sure that ID is set before using it.

#3 @tyxla
6 years ago

  • Keywords has-patch added; needs-patch removed

#4 @SergeyBiryukov
6 years ago

  • Milestone changed from Awaiting Review to 4.2

#5 @SergeyBiryukov
6 years ago

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

[31269] missed the ticket.

Note: See TracTickets for help on using tickets.