Update cat2tag converter. Some term API tweaks. see #4189

git-svn-id: https://develop.svn.wordpress.org/trunk@5553 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2007-05-26 18:54:16 +00:00
parent dc77043278
commit 4c2cd543c1
5 changed files with 43 additions and 56 deletions
+1 -1
View File
@@ -447,7 +447,7 @@ function wp_delete_post($postid = 0) {
function wp_get_post_categories($post_id = 0) {
$post_id = (int) $post_id;
$cats = get_object_terms($post_id, 'category', 'get=ids');
$cats = get_object_terms($post_id, 'category', 'get=fields');
return $cats;
}