From 791b424c31af55dd85e11be47b00ad30f02ae25e Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 20 Oct 2011 21:41:54 +0000 Subject: [PATCH] Typo fix. Props SergeyBiryukov. see #18986 git-svn-id: http://svn.automattic.com/wordpress/trunk@19031 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/taxonomy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index d40343543..c6588eec2 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -2852,7 +2852,7 @@ function _update_post_term_count( $terms, $taxonomy ) { foreach ( (array) $terms as $term ) { - // Attachments can be 'inherit' status, we need to base count off the parent's staus if so + // Attachments can be 'inherit' status, we need to base count off the parent's status if so if ( in_array( 'attachment', $object_types ) ) $count = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $wpdb->term_relationships, $wpdb->posts p1 WHERE p1.ID = $wpdb->term_relationships.object_id AND ( post_status = 'publish' OR ( post_status = 'inherit' AND post_parent > 0 AND ( SELECT post_status FROM $wpdb->posts WHERE ID = p1.post_parent ) = 'publish' ) ) AND post_type IN ('" . implode("', '", $object_types) . "') AND term_taxonomy_id = %d", $term ) ); elseif ( post_type_exists( $object_type ) )