mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 23:00:21 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user