mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
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:
parent
2f391a1ad4
commit
3eb1182967
@ -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…
Reference in New Issue
Block a user