From 4af875d28f423cb0be2102f22a1e2c4566c45a69 Mon Sep 17 00:00:00 2001 From: michelvaldrighi Date: Mon, 11 Oct 2004 16:49:52 +0000 Subject: [PATCH] printr instead of print_r git-svn-id: http://svn.automattic.com/wordpress/trunk@1778 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions-post.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-includes/functions-post.php b/wp-includes/functions-post.php index 9c078a6df1..81394d884c 100644 --- a/wp-includes/functions-post.php +++ b/wp-includes/functions-post.php @@ -164,15 +164,15 @@ function wp_set_post_cats($blogid = '1', $post_ID = 0, $post_categories = array( } - $oldies = print_r($old_categories,1); - $newbies = print_r($post_categories,1); + $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: " . print_r($delete_cats,1)); + logio("O","Delete: " . printr($delete_cats,1)); if ($delete_cats) { foreach ($delete_cats as $del) { @@ -189,7 +189,7 @@ function wp_set_post_cats($blogid = '1', $post_ID = 0, $post_categories = array( // Add any? $add_cats = array_diff($post_categories, $old_categories); - logio("O","Add: " . print_r($add_cats,1)); + logio("O","Add: " . printr($add_cats,1)); if ($add_cats) { foreach ($add_cats as $new_cat) {