Tag clouds from mdawaffe. fixes #4129

git-svn-id: https://develop.svn.wordpress.org/trunk@5234 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2007-04-10 19:52:15 +00:00
parent f9dbc69605
commit e075553eba
3 changed files with 112 additions and 15 deletions
+18
View File
@@ -1471,4 +1471,22 @@ function smilies_init() {
}
}
function wp_parse_args( $args, $defaults = '' ) {
if ( is_array($args) ) :
$r =& $args;
else :
parse_str( $args, $r );
if ( get_magic_quotes_gpc() )
$r = stripslashes_deep( $r );
endif;
if ( is_array($defaults) ) :
extract($defaults);
extract($r);
return compact(array_keys($defaults)); // only those options defined in $defaults
else :
return $r;
endif;
}
?>