Make WordPress Core


Ignore:
Timestamp:
10/24/2011 07:13:23 PM (15 years ago)
Author:
ryan
Message:

Pinking shears

File:
1 edited

Legend:

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

    r19037 r19054  
    28552855
    28562856        $object_types = (array) $taxonomy->object_type;
    2857        
     2857
    28582858        foreach ( $object_types as &$object_type )
    28592859                list( $object_type ) = explode( ':', $object_type );
     
    28792879                        $count += (int) $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $wpdb->term_relationships, $wpdb->posts WHERE $wpdb->posts.ID = $wpdb->term_relationships.object_id AND post_status = 'publish' AND post_type IN ('" . implode("', '", $object_types ) . "') AND term_taxonomy_id = %d", $term ) );
    28802880
    2881                
     2881
    28822882                do_action( 'edit_term_taxonomy', $term, $taxonomy );
    28832883                $wpdb->update( $wpdb->term_taxonomy, compact( 'count' ), array( 'term_taxonomy_id' => $term ) );
Note: See TracChangeset for help on using the changeset viewer.