From 975c670f1535a303fd7f29d0025dd4feffc66d83 Mon Sep 17 00:00:00 2001 From: nacin Date: Fri, 21 Oct 2011 21:50:36 +0000 Subject: [PATCH] Update the update_count_callback docs. see #18986. git-svn-id: http://svn.automattic.com/wordpress/trunk@19037 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/taxonomy.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index 5c8d863b1..68bc9683d 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -255,8 +255,10 @@ function is_taxonomy_hierarchical($taxonomy) { * hierarchical - has some defined purpose at other parts of the API and is a * boolean value. * - * update_count_callback - works much like a hook, in that it will be called - * when the count is updated. + * update_count_callback - works much like a hook, in that it will be called when the count is updated. + * Defaults to _update_post_term_count() for taxonomies attached to post types, which then confirms + * that the objects are then published before counting them. + * Defaults to _update_generic_term_count() for taxonomies attached to other object types, such as links. * * rewrite - false to prevent rewrite, or array('slug'=>$slug) to customize * permastruct; default will use $taxonomy as slug.