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:
parent
505c0ad074
commit
644849ac0e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user