From 5a5c86139f91fdf7ef0c30fe560dec8120d2a415 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Thu, 15 May 2014 19:58:15 +0000 Subject: [PATCH] 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. Built from https://develop.svn.wordpress.org/trunk@28441 git-svn-id: http://core.svn.wordpress.org/trunk@28268 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/taxonomy.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index 58dd9cb9f9..a1795be116 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -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';