From 83e6c81f41ff777f43e5de9f7c996dc686c162c4 Mon Sep 17 00:00:00 2001 From: rboren Date: Wed, 8 Dec 2004 02:35:53 +0000 Subject: [PATCH] s/logio/logIO/. Remove logio calls from the one function in functions-post.php that uses it. functions-post.php is not used by xmlrpc.php exclusively. git-svn-id: http://svn.automattic.com/wordpress/trunk@1920 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions-post.php | 10 ---------- xmlrpc.php | 2 +- 2 files changed, 1 insertion(+), 11 deletions(-) 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) {