if ( $cat_ID == $default )
return 0;
- return wp_delete_term($cat_ID, 'category', "default=$default");
+ return wp_delete_term($cat_ID, 'category', array('default' => $default));
}
function wp_insert_category($catarr, $wp_error = false) {
foreach ( $tags as $tag )
$tag_names[] = $tag->name;
- $tags_to_edit = join( ', ', $tag_names );
+ $tags_to_edit = join( ',', $tag_names );
$tags_to_edit = attribute_escape( $tags_to_edit );
$tags_to_edit = apply_filters( 'tags_to_edit', $tags_to_edit );
return $tags_to_edit;