Make WordPress Core

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#11859 closed enhancement (wontfix)

wp_insert_user() VS. wp_update_user()

Reported by: f-j-kaiser's profile F J Kaiser Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Users Keywords:
Focuses: Cc:

Description

i looked at both functions in /wp-includes/registration.php and don´t see anything wp_update_user brings in, that wp_insert_user can not do.

description from registration.php
*) wp_insert_user(): Insert an user into the database. Can update a current user or insert a new user based on whether the user's ID is present.
*) wp_update_user(): Update an user in the database. If $userdata does not contain an 'ID' key, then a new user will be created and the new user's ID will be returned.

I don´t really see a need for wp_update_user anymore. I´m open to any explanation and discussion. Thanks.

Change History (3)

#1 @ryan
15 years ago

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

That's the pattern our API follows. Removing it woul break back compat.

#2 @nacin
15 years ago

  • Milestone Unassigned deleted

#3 @F J Kaiser
15 years ago

so, wp_update_user will get depr. in the future?

Note: See TracTickets for help on using tickets.