summaryrefslogtreecommitdiffstats
path: root/wp-includes/deprecated.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-includes/deprecated.php')
-rw-r--r--wp-includes/deprecated.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/wp-includes/deprecated.php b/wp-includes/deprecated.php
index b72c07f..0caba44 100644
--- a/wp-includes/deprecated.php
+++ b/wp-includes/deprecated.php
@@ -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']))