From 1e48cc8a05f4319a80be7c1f248bcc2489970d5f Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Sat, 11 Jun 2016 17:08:28 +0000 Subject: [PATCH] Docs: Improve the return description for `wp_get_post_categories()` to include more information about possible return values. Props jeherve for the initial patch. Fixes #37002. Built from https://develop.svn.wordpress.org/trunk@37686 git-svn-id: http://core.svn.wordpress.org/trunk@37652 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post.php | 6 ++++-- wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index 4ce2ac19e5..606d2669ab 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -2853,8 +2853,10 @@ function wp_untrash_post_comments( $post = null ) { * * @param int $post_id Optional. The Post ID. Does not default to the ID of the * global $post. Default 0. - * @param array $args Optional. Category arguments. Default empty. - * @return array List of categories. + * @param array $args Optional. Category arguments. See wp_get_object_terms(). Default empty. + * @return array List of categories. If the `$fields` argument passed via `$args` is 'all' or + * 'all_with_object_id', an array of WP_Term objects will be returned. If `$fields` + * is 'ids', an array of category ids. If `$fields` is 'names', an array of category names. */ function wp_get_post_categories( $post_id = 0, $args = array() ) { $post_id = (int) $post_id; diff --git a/wp-includes/version.php b/wp-includes/version.php index 905719d92a..0fcd800cfd 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.6-alpha-37685'; +$wp_version = '4.6-alpha-37686'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.