mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Add a filter to the result of wp_get_object_terms(). Fixes #8704 props Denis-de-Bernardy.
git-svn-id: http://svn.automattic.com/wordpress/trunk@11253 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d6b7dc3a8e
commit
077697d1ca
@ -1273,9 +1273,9 @@ function wp_get_object_terms($object_ids, $taxonomies, $args = array()) {
|
||||
}
|
||||
|
||||
if ( ! $terms )
|
||||
return array();
|
||||
return $terms = array();
|
||||
|
||||
return $terms;
|
||||
return apply_filters('wp_get_object_terms', $terms, $object_ids, $taxonomies, $args);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user