Tag clouds from mdawaffe. fixes #4129

git-svn-id: http://svn.automattic.com/wordpress/trunk@5234 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2007-04-10 19:52:15 +00:00
parent f32f812fa9
commit 77cdde3f87
3 changed files with 112 additions and 15 deletions

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;
}
?>