mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 23:00:21 +00:00
Add some taxonomy validation. Rearrange funcs.
git-svn-id: https://develop.svn.wordpress.org/trunk@5726 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -54,7 +54,7 @@ function wp_delete_link($link_id) {
|
||||
|
||||
function wp_get_link_cats($link_id = 0) {
|
||||
|
||||
$cats = get_object_terms($link_id, 'link_category', 'fields=ids');
|
||||
$cats = wp_get_object_terms($link_id, 'link_category', 'fields=ids');
|
||||
|
||||
return array_unique($cats);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user