Make WordPress Core


Ignore:
Timestamp:
04/24/2008 12:54:27 AM (17 years ago)
Author:
ryan
Message:

Don't query for checked categories for new posts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r7787 r7800  
    177177
    178178function 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();
    179184    $categories = get_terms( $taxonomy, array( 'orderby' => 'count', 'order' => 'DESC', 'number' => $number, 'hierarchical' => false ) );
    180185
Note: See TracChangeset for help on using the changeset viewer.