Changeset 7800 for trunk/wp-admin/includes/template.php
- Timestamp:
- 04/24/2008 12:54:27 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/template.php
r7787 r7800 177 177 178 178 function wp_popular_terms_checklist( $taxonomy, $default = 0, $number = 10 ) { 179 global $post_ID; 180 if ( $post_ID ) 181 $checked_categories = wp_get_post_categories($post_ID); 182 else 183 $checked_categories = array(); 179 184 $categories = get_terms( $taxonomy, array( 'orderby' => 'count', 'order' => 'DESC', 'number' => $number, 'hierarchical' => false ) ); 180 185
Note: See TracChangeset
for help on using the changeset viewer.