Skip to content

Commit 8e97202

Browse files
committed
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
1 parent 5307ec1 commit 8e97202

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

wp-includes/taxonomy.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ function create_initial_taxonomies() {
1919

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(
2524
'hierarchical' => true,
@@ -32,7 +31,6 @@ function create_initial_taxonomies() {
3231

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(
3836
'slug' => get_option('tag_base') ? get_option('tag_base') : 'tag',

0 commit comments

Comments
 (0)