If we don't have IDs at this point, bail out. There are no tag defaults. Should fix #4035 though I can't recreate their particular error.

git-svn-id: https://develop.svn.wordpress.org/trunk@5113 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2007-03-26 18:05:28 +00:00
parent 505c0ad074
commit 644849ac0e
1 changed files with 3 additions and 0 deletions

View File

@ -789,6 +789,9 @@ function wp_set_post_tags( $post_id = 0, $tags = '' ) {
$tag_ids[] = $tag_id;
}
if ( !is_array( $tag_ids ) )
return false;
$tag_ids = array_unique( $tag_ids );
// First the old tags