Changeset 19684 for trunk/wp-includes/taxonomy.php
- Timestamp:
- 01/05/2012 08:10:39 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r19678 r19684 122 122 return wp_filter_object_list($wp_taxonomies, $args, $operator, $field); 123 123 } 124 125 124 126 125 /** … … 2499 2498 // 2500 2499 2501 2502 2500 /** 2503 2501 * Removes the taxonomy relationship to terms from the cache. … … 2528 2526 do_action('clean_object_term_cache', $object_ids, $object_type); 2529 2527 } 2530 2531 2528 2532 2529 /** … … 2590 2587 } 2591 2588 2592 2593 2589 /** 2594 2590 * Retrieves the taxonomy relationship to the term object id. … … 2608 2604 return $cache; 2609 2605 } 2610 2611 2606 2612 2607 /** … … 2679 2674 } 2680 2675 2681 2682 2676 /** 2683 2677 * Updates Terms to Taxonomy in cache. … … 2703 2697 // Private 2704 2698 // 2705 2706 2699 2707 2700 /** … … 2737 2730 } 2738 2731 2739 2740 2732 /** 2741 2733 * Get the subset of $terms that are descendants of $term_id. … … 2793 2785 return $term_list; 2794 2786 } 2795 2796 2787 2797 2788 /** … … 2903 2894 if ( $object_types ) 2904 2895 $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 ) ); 2905 2906 2896 2907 2897 do_action( 'edit_term_taxonomy', $term, $taxonomy );
Note: See TracChangeset
for help on using the changeset viewer.