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
This commit is contained in:
parent
ee90a8c17c
commit
e6fad96f5e
|
@ -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'];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue