Better variable naming. See #7358.

git-svn-id: https://develop.svn.wordpress.org/trunk@9349 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood
2008-10-25 22:56:02 +00:00
parent f8bad23493
commit 11ef4262c2
2 changed files with 17 additions and 17 deletions

View File

@@ -1593,8 +1593,8 @@ function wp_publish_post($post_id) {
// Update counts for the post's terms.
foreach ( (array) get_object_taxonomies('post') as $taxonomy ) {
$terms = wp_get_object_terms($post_id, $taxonomy, 'fields=tt_ids');
wp_update_term_count($terms, $taxonomy);
$tt_ids = wp_get_object_terms($post_id, $taxonomy, 'fields=tt_ids');
wp_update_term_count($tt_ids, $taxonomy);
}
do_action('edit_post', $post_id, $post);