From e6fad96f5ef76957972f69565a13dabe9e021955 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Thu, 15 May 2014 05:25:14 +0000 Subject: [PATCH] Eliminate the use of `extract()` in `the_taxonomies()`. Adds unit test. See #22400. Built from https://develop.svn.wordpress.org/trunk@28421 git-svn-id: http://core.svn.wordpress.org/trunk@28248 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/taxonomy.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index f201b36c25..42bff05e36 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -3685,7 +3685,7 @@ function get_term_link( $term, $taxonomy = '') { * * @param array $args Override the defaults. */ -function the_taxonomies($args = array()) { +function the_taxonomies( $args = array() ) { $defaults = array( 'post' => 0, 'before' => '', @@ -3695,9 +3695,8 @@ function the_taxonomies($args = array()) { ); $r = wp_parse_args( $args, $defaults ); - extract( $r, EXTR_SKIP ); - echo $before . join($sep, get_the_taxonomies($post, $r)) . $after; + echo $r['before'] . join( $r['sep'], get_the_taxonomies( $r['post'], $r ) ) . $r['after']; } /**