WordPress.org

Make WordPress Core

Changeset 7801


Ignore:
Timestamp:
04/24/08 00:55:22 (7 years ago)
Author:
ryan
Message:

Don't query for checked categories for new posts. For 2.5

File:
1 edited

Legend:

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

    r7786 r7801  
    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.