Changeset 7739
- Timestamp:
- 04/18/2008 06:12:04 PM (17 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-form-advanced.php
r7737 r7739 242 242 <div id="categories-all" class="ui-tabs-panel"> 243 243 <ul id="categorychecklist" class="list:category categorychecklist form-no-clear"> 244 <?php wp_category_checklist($post ->ID) ?>244 <?php wp_category_checklist($post_ID) ?> 245 245 </ul> 246 246 </div> -
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.