Use wp_parse_args(). fixes #4237

git-svn-id: https://develop.svn.wordpress.org/trunk@5444 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
rob1n
2007-05-11 03:10:05 +00:00
parent 90cd098abe
commit c213997f48
10 changed files with 195 additions and 191 deletions
+1 -4
View File
@@ -427,10 +427,7 @@ function list_cats($optionall = 1, $all = 'All', $sort_column = 'ID', $sort_orde
}
function wp_list_cats($args = '') {
if ( is_array($args) )
$r = &$args;
else
parse_str($args, $r);
$r = wp_parse_args( $args );
// Map to new names.
if ( isset($r['optionall']) && isset($r['all']))