Changeset 7739 for trunk/wp-admin/includes/template.php
- Timestamp:
- 04/18/2008 06:12:04 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/template.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/template.php
r7737 r7739 157 157 } 158 158 159 function wp_category_checklist( $post_id ) {159 function wp_category_checklist( $post_id = 0 ) { 160 160 $walker = new Walker_Category_Checklist; 161 161 162 162 $args = array(); 163 $args['selected_cats'] = wp_get_post_categories($post_id); 163 164 if ( $post_id ) 165 $args['selected_cats'] = wp_get_post_categories($post_id); 166 else 167 $args['selected_cats'] = array(); 164 168 $args['popular_cats'] = get_terms( 'category', array( 'fields' => 'ids', 'orderby' => 'count', 'order' => 'DESC', 'number' => 10 ) ); 165 169 $categories = get_categories('get=all');
Note: See TracChangeset
for help on using the changeset viewer.