Make WordPress Core

Changeset 19031


Ignore:
Timestamp:
10/20/2011 09:41:54 PM (13 years ago)
Author:
ryan
Message:

Typo fix. Props SergeyBiryukov. see #18986

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/taxonomy.php

    r19025 r19031  
    28532853    foreach ( (array) $terms as $term ) {
    28542854
    2855         // Attachments can be 'inherit' status, we need to base count off the parent's staus if so
     2855        // Attachments can be 'inherit' status, we need to base count off the parent's status if so
    28562856        if ( in_array( 'attachment', $object_types ) )
    28572857            $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 ) );
Note: See TracChangeset for help on using the changeset viewer.