diff --git a/wp-includes/functions-post.php b/wp-includes/functions-post.php index cc459bfda1..dfacc3a857 100644 --- a/wp-includes/functions-post.php +++ b/wp-includes/functions-post.php @@ -167,13 +167,9 @@ function wp_set_post_cats($blogid = '1', $post_ID = 0, $post_categories = array( $oldies = printr($old_categories,1); $newbies = printr($post_categories,1); - logio("O","Old: $oldies\nNew: $newbies\n"); - // Delete any? $delete_cats = array_diff($old_categories,$post_categories); - logio("O","Delete: " . printr($delete_cats,1)); - if ($delete_cats) { foreach ($delete_cats as $del) { $wpdb->query(" @@ -181,23 +177,17 @@ function wp_set_post_cats($blogid = '1', $post_ID = 0, $post_categories = array( WHERE category_id = $del AND post_id = $post_ID "); - - logio("O","deleting post/cat: $post_ID, $del"); } } // Add any? $add_cats = array_diff($post_categories, $old_categories); - logio("O","Add: " . printr($add_cats,1)); - if ($add_cats) { foreach ($add_cats as $new_cat) { $wpdb->query(" INSERT INTO $wpdb->post2cat (post_id, category_id) VALUES ($post_ID, $new_cat)"); - - logio("O","adding post/cat: $post_ID, $new_cat"); } } } // wp_set_post_cats() diff --git a/xmlrpc.php b/xmlrpc.php index 183ac35438..37ff265afb 100644 --- a/xmlrpc.php +++ b/xmlrpc.php @@ -519,7 +519,7 @@ class wp_xmlrpc_server extends IXR_Server { } $catnames = $content_struct['categories']; - logio('O', 'Post cats: ' . printr($catnames,true)); + logIO('O', 'Post cats: ' . printr($catnames,true)); $post_category = array(); if ($catnames) {