]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/includes/taxonomy.php
Wordpress 2.6.2
[autoinstalls/wordpress.git] / wp-admin / includes / taxonomy.php
index b490ed639ca47ce30bc1ca5f7a2e827eaa09e9af..a0b95a7af6f2aa32e2a6fa727cd38a25254419b0 100644 (file)
@@ -47,7 +47,7 @@ function wp_delete_category($cat_ID) {
        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) {
@@ -133,7 +133,7 @@ function get_tags_to_edit( $post_id ) {
 
        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;