[wp-trac] [WordPress Trac] #52943: Document the 'import_id' parameter in wp_insert_post()

WordPress Trac noreply at wordpress.org
Tue Mar 30 15:42:32 UTC 2021


#52943: Document the 'import_id' parameter in wp_insert_post()
-------------------------------+-------------------------
 Reporter:  SergeyBiryukov     |      Owner:  (none)
     Type:  defect (bug)       |     Status:  new
 Priority:  normal             |  Milestone:  5.8
Component:  Posts, Post Types  |    Version:
 Severity:  normal             |   Keywords:  needs-patch
  Focuses:  docs               |
-------------------------------+-------------------------
 `wp_insert_post()` has an undocumented [source:tags/5.7/src/wp-
 includes/post.php#L3758 'import_id' parameter] added in [9100].

 It can be used to [source:tags/5.7/src/wp-
 includes/post.php?marks=4126-4133#L4125 preserve post IDs during import]
 and should be properly documented in the function DocBlock.

 Related: #37818

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52943>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list