Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#52943 closed defect (bug) (fixed)

Document the 'import_id' parameter in wp_insert_post()

Reported by: sergeybiryukov's profile SergeyBiryukov Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 5.8 Priority: normal
Severity: normal Version:
Component: Posts, Post Types Keywords: has-patch
Focuses: docs Cc:

Description (last modified by SergeyBiryukov)

wp_insert_post() has an undocumented 'import_id' parameter added in [9100].

It can be used to preserve post IDs during import and should be properly documented in the function DocBlock.

Related: #37818

Change History (4)

#1 @SergeyBiryukov
3 years ago

  • Description modified (diff)

This ticket was mentioned in PR #1144 on WordPress/wordpress-develop by donmhico.

3 years ago

  • Keywords has-patch added; needs-patch removed

This PR adds docs for $import_id param.

Trac ticket:

#3 @donmhico
3 years ago

Thanks for the ticket @SergeyBiryukov. I attached a PR that adds the doc for $import_id

#4 @SergeyBiryukov
3 years ago

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

In 50621:

Docs: Document the import_id parameter of wp_insert_post().

Follow-up to [9100].

Props donmhico.
Fixes #52943.

Note: See TracTickets for help on using tickets.