mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Eliminate use of extract() in wp_get_object_terms().
There are 3 properties, just set them to variables. They are used too often to warrant a refactor. See #22400. git-svn-id: https://develop.svn.wordpress.org/trunk@28441 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2229,7 +2229,9 @@ function wp_get_object_terms($object_ids, $taxonomies, $args = array()) {
|
||||
$args = array_merge($args, $t->args);
|
||||
}
|
||||
|
||||
extract($args, EXTR_SKIP);
|
||||
$orderby = $args['orderby'];
|
||||
$order = $args['order'];
|
||||
$fields = $args['fields'];
|
||||
|
||||
if ( 'count' == $orderby )
|
||||
$orderby = 'tt.count';
|
||||
|
||||
Reference in New Issue
Block a user