Make WordPress Core

Opened 10 years ago

Last modified 6 years ago

#37818 new enhancement

Suggested import id for wp_insert_user

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

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 10 years ago.
37818.2.diff​ (3.1 KB ) - added by donmhico 6 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
10 years ago

  • Keywords has-patch added

#2 @desrosj
8 years ago

  • Keywords needs-refresh needs-unit-tests added
  • Milestone Awaiting Review → Future Release

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

@donmhico
6 years ago

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

#3 @donmhico
6 years ago

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