[wp-trac] [WordPress Trac] #21963: Consolidate post insertion APIs

WordPress Trac noreply at wordpress.org
Mon May 26 23:19:05 UTC 2014


#21963: Consolidate post insertion APIs
--------------------------------------------------+------------------
 Reporter:  nacin                                 |       Owner:
     Type:  defect (bug)                          |      Status:  new
 Priority:  normal                                |   Milestone:  4.0
Component:  Posts, Post Types                     |     Version:
 Severity:  normal                                |  Resolution:
 Keywords:  has-patch needs-unit-tests 3.6-early  |     Focuses:
--------------------------------------------------+------------------

Comment (by wonderboymusic):

 In [changeset:"28579"]:
 {{{
 #!CommitTicketReference repository="" revision="28579"
 Combine `wp_insert_attachment()` and `wp_insert_post()`.
 `wp_insert_attachment()` becomes a wrapper. Update inline docs.

 Props wonderboymusic, DrewAPicture.
 See #21963.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/21963#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list