Remove debug

git-svn-id: http://svn.automattic.com/wordpress/trunk@5272 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-04-15 02:30:00 +00:00
parent f651ce93c3
commit 049b86dea5
1 changed files with 1 additions and 4 deletions

View File

@ -94,7 +94,7 @@ function wp_insert_category($catarr) {
$update = true;
else
$update = false;
error_log("Type for $cat_ID is $type", 0);
$cat_name = apply_filters('pre_category_name', $cat_name);
if (empty ($category_nicename))
@ -295,13 +295,10 @@ function wp_create_tag($tag_name) {
$tag_array = array('cat_name' => $tag_name, 'type' => TAXONOMY_TAG);
if ( $id = category_object_exists($tag_name) ) {
error_log("$tag_name exists", 0);
$category = get_category($id);
$tag_array['type'] = $category->type | $tag_array['type'];
$tag_array['cat_ID'] = $id;
error_log("Type: {$tag_array['type']}", 0);
$id = wp_update_category($tag_array);
error_log("Tag id $id", 0);
return $id;
} else {
return wp_insert_category($tag_array);