From c0debca1f3a41f78cef7a82b394426a5645096b7 Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Mon, 21 Jan 2019 01:45:50 +0000 Subject: [PATCH] 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. Built from https://develop.svn.wordpress.org/trunk@44660 git-svn-id: http://core.svn.wordpress.org/trunk@44491 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post.php | 8 ++++---- wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index 7e46f698ff..00a05babc5 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -3368,7 +3368,7 @@ 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. + * @type array $post_category Array of category IDs. * Defaults to value of the 'default_category' option. * @type array $tags_input Array of tag names, slugs, or IDs. Default empty. * @type array $tax_input Array of taxonomy terms keyed by their taxonomy name. Default empty. @@ -4381,10 +4381,10 @@ function wp_set_post_terms( $post_id = 0, $tags = '', $taxonomy = 'post_tag', $a * * @param int $post_ID Optional. The Post ID. Does not default to the ID * of the global $post. Default 0. - * @param array|int $post_categories Optional. List of categories or ID of category. + * @param array|int $post_categories Optional. List of category IDs, or the ID of a single category. * Default empty array. - * @param bool $append If true, don't delete existing categories, just add on. - * If false, replace the categories with the new categories. + * @param bool $append If true, don't delete existing categories, just add on. + * If false, replace the categories with the new categories. * @return array|false|WP_Error Array of term taxonomy IDs of affected categories. WP_Error or false on failure. */ function wp_set_post_categories( $post_ID = 0, $post_categories = array(), $append = false ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index d71455d61e..5ff83728b4 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.1-beta1-44659'; +$wp_version = '5.1-beta1-44660'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.