Docs: Correct the possible return types and corresponding descriptions for `wp_get_post_terms()`.

Props adamkheckler for the initial patch.
Fixes #32950.

Built from https://develop.svn.wordpress.org/trunk@33393


git-svn-id: http://core.svn.wordpress.org/trunk@33361 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Drew Jaynes 2015-07-23 07:45:25 +00:00
parent 3a97d2a7de
commit 9cd32c7f6c
2 changed files with 3 additions and 2 deletions

View File

@ -3013,7 +3013,8 @@ function wp_get_post_tags( $post_id = 0, $args = array() ) {
* global $post. Default 0. * global $post. Default 0.
* @param string $taxonomy Optional. The taxonomy for which to retrieve terms. Default 'post_tag'. * @param string $taxonomy Optional. The taxonomy for which to retrieve terms. Default 'post_tag'.
* @param array $args Optional. {@link wp_get_object_terms()} arguments. Default empty array. * @param array $args Optional. {@link wp_get_object_terms()} arguments. Default empty array.
* @return array List of post tags. * @return array|WP_Error List of post terms or empty array if no terms were found. WP_Error object
* if `$taxonomy` doesn't exist.
*/ */
function wp_get_post_terms( $post_id = 0, $taxonomy = 'post_tag', $args = array() ) { function wp_get_post_terms( $post_id = 0, $taxonomy = 'post_tag', $args = array() ) {
$post_id = (int) $post_id; $post_id = (int) $post_id;

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.3-beta4-33392'; $wp_version = '4.3-beta4-33393';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.