From c9d4749ed7d81196f668dc8bd52b6f69e4d52519 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Wed, 21 Jul 2010 00:50:01 +0000 Subject: [PATCH] Doc update for [15402]. fixes #14301. git-svn-id: https://develop.svn.wordpress.org/trunk@15449 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/post.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index b086e531d3..6d9d554be4 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -2613,7 +2613,7 @@ function wp_add_post_tags($post_id = 0, $tags = '') { * @param int $post_id Post ID. * @param string $tags The tags to set for the post, separated by commas. * @param bool $append If true, don't delete existing tags, just add on. If false, replace the tags with the new tags. - * @return bool|null Will return false if $post_id is not an integer or is 0. Will return null otherwise + * @return mixed Array of affected term IDs. WP_Error or false on failure. */ function wp_set_post_tags( $post_id = 0, $tags = '', $append = false ) { return wp_set_post_terms( $post_id, $tags, 'post_tag', $append); @@ -2628,7 +2628,7 @@ function wp_set_post_tags( $post_id = 0, $tags = '', $append = false ) { * @param int $post_id Post ID. * @param string $tags The tags to set for the post, separated by commas. * @param bool $append If true, don't delete existing tags, just add on. If false, replace the tags with the new tags. - * @return bool|null Will return false if $post_id is not an integer or is 0. Will return null otherwise + * @return mixed Array of affected term IDs. WP_Error or false on failure. */ function wp_set_post_terms( $post_id = 0, $tags = '', $taxonomy = 'post_tag', $append = false ) { $post_id = (int) $post_id;