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: http://svn.automattic.com/wordpress/trunk@5113 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt 2007-03-26 18:05:28 +00:00
parent 2f391a1ad4
commit 3eb1182967

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