From 742e0005c60cebdb6686d849bb1ddaaad2f9fe1c Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Wed, 20 Apr 2016 13:54:30 +0000 Subject: [PATCH] Add parameter documentation for 'post_category' to `wp_insert_post()`. Props Latz. Fixes #36601. Built from https://develop.svn.wordpress.org/trunk@37255 git-svn-id: http://core.svn.wordpress.org/trunk@37221 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post.php | 2 ++ wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index 72ffc8dc37..9e2efe8f34 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -3005,6 +3005,8 @@ function wp_get_recent_posts( $args = array(), $output = ARRAY_A ) { * @type int $menu_order The order the post should be displayed in. Default 0. * @type string $post_mime_type The mime type of the post. Default empty. * @type string $guid Global Unique ID for referencing the post. Default empty. + * @type array $post_category Array of category names, slugs, or IDs. + * Defaults to value of the 'default_category' option. * @type array $tax_input Array of taxonomy terms keyed by their taxonomy name. Default empty. * @type array $meta_input Array of post meta values keyed by their post meta key. Default empty. * } diff --git a/wp-includes/version.php b/wp-includes/version.php index da7d4a328f..81b96e4c24 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.6-alpha-37254'; +$wp_version = '4.6-alpha-37255'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.