[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
Wed Oct 31 14:48:37 UTC 2018


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

 * keywords:  good-first-bug => good-first-bug has-patch


Comment:

 Fix doc comment of `wp_insert_post`.
 Besides that, doc comment of `wp_set_post_categories` is also vague(`List
 of categories`), so I fixed it's more concrete `List of category IDs`.

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


More information about the wp-trac mailing list