[wp-trac] [WordPress Trac] #45171: Adjust wp_insert_post() docs to reflect that the post_category argument will only accept one or more term IDs

WordPress Trac noreply at wordpress.org
Mon Jan 21 01:44:54 UTC 2019


#45171: Adjust wp_insert_post() docs to reflect that the post_category argument
will only accept one or more term IDs
--------------------------------------+---------------------
 Reporter:  DrewAPicture              |       Owner:  pento
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  5.1
Component:  Posts, Post Types         |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  good-first-bug has-patch  |     Focuses:  docs
--------------------------------------+---------------------
Changes (by pento):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"44660" 44660]:
 {{{
 #!CommitTicketReference repository="" revision="44660"
 Docs: Improve the docblocks for `wp_insert_post()` and
 `wp_set_post_categories()`.

 Their respective `post_category` and `post_categories` parameters were not
 correct.

 Props Takahashi_Fumiki.
 Fixes #45171.
 }}}

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


More information about the wp-trac mailing list