WordPress.org

Make WordPress Core

Changeset 19036


Ignore:
Timestamp:
10/21/11 21:46:03 (2 years ago)
Author:
nacin
Message:

No need to specify an update_count_callback for categories or tags, as the default handler for them will now be _update_post_term_count(). see #18986, [19035].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/taxonomy.php

    r19035 r19036  
    2020    register_taxonomy( 'category', 'post', array( 
    2121        'hierarchical' => true, 
    22         'update_count_callback' => '_update_post_term_count', 
    2322        'query_var' => 'category_name', 
    2423        'rewrite' => did_action( 'init' ) ? array( 
     
    3332    register_taxonomy( 'post_tag', 'post', array( 
    3433        'hierarchical' => false, 
    35         'update_count_callback' => '_update_post_term_count', 
    3634        'query_var' => 'tag', 
    3735        'rewrite' => did_action( 'init' ) ? array( 
Note: See TracChangeset for help on using the changeset viewer.