Ticket #5412: dont_add_blank_tags.patch
| File dont_add_blank_tags.patch, 455 bytes (added by ionfish, 10 months ago) |
|---|
-
wp-includes/post.php
old new 844 844 845 845 if ( empty($tags) ) 846 846 $tags = array(); 847 $tags = (is_array($tags)) ? $tags : explode( ',', $tags);847 $tags = (is_array($tags)) ? $tags : explode( ',', trim($tags, " \s\n\t\r\0\x0B,") ); 848 848 wp_set_object_terms($post_id, $tags, 'post_tag', $append); 849 849 } 850 850
