Make WordPress Core

Opened 8 years ago

Last modified 4 years ago

#37818 new enhancement

Suggested import id for wp_insert_user

Reported by: grapplerulrich's profile grapplerulrich Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 2.0
Component: Import Keywords: has-patch has-unit-tests
Focuses: administration Cc:

Description

I would like to import users and would like to keep the previous user ids.

In wp_insert_post() I can define the import_id and that is the ID that is used if it does not yet exist.

By adding the same parameter to wp_insert_user() would allow us to suggest an ID.

Attachments (2)

37818.patch (2.0 KB) - added by grapplerulrich 8 years ago.
37818.2.diff (3.1 KB) - added by donmhico 4 years ago.
Patch for this PR - https://github.com/WordPress/wordpress-develop/pull/414 - Refreshed and add unit test.

Download all attachments as: .zip

Change History (5)

#1 @grapplerulrich
8 years ago

  • Keywords has-patch added

#2 @desrosj
5 years ago

  • Keywords needs-refresh needs-unit-tests added
  • Milestone changed from Awaiting Review to Future Release

37818.patch needs to be refreshed. This also would need some unit tests.

@donmhico
4 years ago

Patch for this PR - https://github.com/WordPress/wordpress-develop/pull/414 - Refreshed and add unit test.

#3 @donmhico
4 years ago

  • Keywords has-unit-tests added; needs-refresh needs-unit-tests removed
Note: See TracTickets for help on using tickets.