Doc update for [15402]. fixes #14301.

git-svn-id: https://develop.svn.wordpress.org/trunk@15449 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-07-21 00:50:01 +00:00
parent 1ed9585257
commit c9d4749ed7
1 changed files with 2 additions and 2 deletions

View File

@ -2613,7 +2613,7 @@ function wp_add_post_tags($post_id = 0, $tags = '') {
* @param int $post_id Post ID. * @param int $post_id Post ID.
* @param string $tags The tags to set for the post, separated by commas. * @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. * @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 ) { function wp_set_post_tags( $post_id = 0, $tags = '', $append = false ) {
return wp_set_post_terms( $post_id, $tags, 'post_tag', $append); 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 int $post_id Post ID.
* @param string $tags The tags to set for the post, separated by commas. * @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. * @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 ) { function wp_set_post_terms( $post_id = 0, $tags = '', $taxonomy = 'post_tag', $append = false ) {
$post_id = (int) $post_id; $post_id = (int) $post_id;