mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 17:48:01 +01:00
No reason not to have default for current category argument.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1929 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2596b5a5c2
commit
b6c13ceee4
@ -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;
|
global $wpdb, $bgcolor;
|
||||||
if (!$categories) {
|
if (!$categories) {
|
||||||
$categories = $wpdb->get_results("SELECT * FROM $wpdb->categories ORDER BY cat_name");
|
$categories = $wpdb->get_results("SELECT * FROM $wpdb->categories ORDER BY cat_name");
|
||||||
|
Loading…
Reference in New Issue
Block a user