Changeset 19054 for trunk/wp-includes/taxonomy.php
- Timestamp:
- 10/24/2011 07:13:23 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/taxonomy.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r19037 r19054 2855 2855 2856 2856 $object_types = (array) $taxonomy->object_type; 2857 2857 2858 2858 foreach ( $object_types as &$object_type ) 2859 2859 list( $object_type ) = explode( ':', $object_type ); … … 2879 2879 $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 ) ); 2880 2880 2881 2881 2882 2882 do_action( 'edit_term_taxonomy', $term, $taxonomy ); 2883 2883 $wpdb->update( $wpdb->term_taxonomy, compact( 'count' ), array( 'term_taxonomy_id' => $term ) );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)