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].
git-svn-id: https://develop.svn.wordpress.org/trunk@19036 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5307ec17c5
commit
8e97202178
@ -19,7 +19,6 @@ function create_initial_taxonomies() {
|
||||
|
||||
register_taxonomy( 'category', 'post', array(
|
||||
'hierarchical' => true,
|
||||
'update_count_callback' => '_update_post_term_count',
|
||||
'query_var' => 'category_name',
|
||||
'rewrite' => did_action( 'init' ) ? array(
|
||||
'hierarchical' => true,
|
||||
@ -32,7 +31,6 @@ function create_initial_taxonomies() {
|
||||
|
||||
register_taxonomy( 'post_tag', 'post', array(
|
||||
'hierarchical' => false,
|
||||
'update_count_callback' => '_update_post_term_count',
|
||||
'query_var' => 'tag',
|
||||
'rewrite' => did_action( 'init' ) ? array(
|
||||
'slug' => get_option('tag_base') ? get_option('tag_base') : 'tag',
|
||||
|
Loading…
Reference in New Issue
Block a user