Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 7 months 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 (5)

#1 @SergeyBiryukov
4 years ago

  • Description modified (diff)

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


4 years ago
#2

  • Keywords has-patch added; needs-patch removed

This PR adds docs for $import_id param.

Trac ticket: https://core.trac.wordpress.org/ticket/52943

#3 @donmhico
4 years ago

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

#4 @SergeyBiryukov
4 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.

@SergeyBiryukov commented on PR #1144:


7 months ago
#5

Thanks for the PR! Merged in r50621.

Note: See TracTickets for help on using tickets.