Changeset 3850 for trunk/wp-admin/admin-functions.php
- Timestamp:
- 06/06/2006 05:36:28 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-functions.php
r3846 r3850 644 644 645 645 if (!$categories) 646 $categories = $wpdb->get_results("SELECT * FROM $wpdb->categories ORDER BY cat_name");646 $categories = get_categories('hide_empty=0'); 647 647 648 648 if ($categories) { … … 686 686 687 687 if (!$pages) 688 $pages = $wpdb->get_results("SELECT * FROM $wpdb->posts WHERE post_type = 'page' ORDER BY menu_order");688 $pages = get_pages('sort_column=menu_order'); 689 689 690 690 if (! $pages) … … 746 746 747 747 function wp_dropdown_cats($currentcat = 0, $currentparent = 0, $parent = 0, $level = 0, $categories = 0) { 748 global $wpdb , $bgcolor;749 if (!$categories) {750 $categories = $wpdb->get_results("SELECT * FROM $wpdb->categories ORDER BY cat_name");751 } 748 global $wpdb; 749 if (!$categories) 750 $categories = get_categories('hide_empty=0'); 751 752 752 if ($categories) { 753 753 foreach ($categories as $category) {
Note: See TracChangeset
for help on using the changeset viewer.