No reason not to have default for current category argument.
git-svn-id: https://develop.svn.wordpress.org/trunk@1929 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e519f7c239
commit
75e19e4ec2
|
@ -135,7 +135,7 @@ function cat_rows($parent = 0, $level = 0, $categories = 0) {
|
|||
}
|
||||
}
|
||||
|
||||
function wp_dropdown_cats($currentcat, $currentparent = 0, $parent = 0, $level = 0, $categories = 0) {
|
||||
function wp_dropdown_cats($currentcat = 0, $currentparent = 0, $parent = 0, $level = 0, $categories = 0) {
|
||||
global $wpdb, $bgcolor;
|
||||
if (!$categories) {
|
||||
$categories = $wpdb->get_results("SELECT * FROM $wpdb->categories ORDER BY cat_name");
|
||||
|
|
Loading…
Reference in New Issue