Changeset 33954 for trunk/src/wp-includes/taxonomy-functions.php
- Timestamp:
- 09/08/2015 10:16:57 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy-functions.php
r33903 r33954 815 815 wp_cache_add( $term->term_id, $term, $taxonomy ); 816 816 817 /** This filter is documented in wp-includes/taxonomy .php */817 /** This filter is documented in wp-includes/taxonomy-functions.php */ 818 818 $term = apply_filters( 'get_term', $term, $taxonomy ); 819 819 820 /** This filter is documented in wp-includes/taxonomy .php */820 /** This filter is documented in wp-includes/taxonomy-functions.php */ 821 821 $term = apply_filters( "get_$taxonomy", $term, $taxonomy ); 822 822 … … 1367 1367 wp_cache_add( $cache_key, array(), 'terms', DAY_IN_SECONDS ); 1368 1368 1369 /** This filter is documented in wp-includes/taxonomy .php */1369 /** This filter is documented in wp-includes/taxonomy-functions.php */ 1370 1370 return apply_filters( 'get_terms', array(), $taxonomies, $args ); 1371 1371 } … … 2337 2337 $slug = sanitize_title($slug, $term_id); 2338 2338 2339 /** This action is documented in wp-includes/taxonomy .php */2339 /** This action is documented in wp-includes/taxonomy-functions.php */ 2340 2340 do_action( 'edit_terms', $term_id, $taxonomy ); 2341 2341 $wpdb->update( $wpdb->terms, compact( 'slug' ), compact( 'term_id' ) ); 2342 2342 2343 /** This action is documented in wp-includes/taxonomy .php */2343 /** This action is documented in wp-includes/taxonomy-functions.php */ 2344 2344 do_action( 'edited_terms', $term_id, $taxonomy ); 2345 2345 } … … 2977 2977 do_action( "edit_$taxonomy", $term_id, $tt_id ); 2978 2978 2979 /** This filter is documented in wp-includes/taxonomy .php */2979 /** This filter is documented in wp-includes/taxonomy-functions.php */ 2980 2980 $term_id = apply_filters( 'term_id_filter', $term_id, $tt_id ); 2981 2981 … … 3529 3529 $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 ) ); 3530 3530 3531 /** This action is documented in wp-includes/taxonomy .php */3531 /** This action is documented in wp-includes/taxonomy-functions.php */ 3532 3532 do_action( 'edit_term_taxonomy', $term, $taxonomy->name ); 3533 3533 $wpdb->update( $wpdb->term_taxonomy, compact( 'count' ), array( 'term_taxonomy_id' => $term ) ); 3534 3534 3535 /** This action is documented in wp-includes/taxonomy .php */3535 /** This action is documented in wp-includes/taxonomy-functions.php */ 3536 3536 do_action( 'edited_term_taxonomy', $term, $taxonomy->name ); 3537 3537 } … … 3556 3556 $count = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $wpdb->term_relationships WHERE term_taxonomy_id = %d", $term ) ); 3557 3557 3558 /** This action is documented in wp-includes/taxonomy .php */3558 /** This action is documented in wp-includes/taxonomy-functions.php */ 3559 3559 do_action( 'edit_term_taxonomy', $term, $taxonomy->name ); 3560 3560 $wpdb->update( $wpdb->term_taxonomy, compact( 'count' ), array( 'term_taxonomy_id' => $term ) ); 3561 3561 3562 /** This action is documented in wp-includes/taxonomy .php */3562 /** This action is documented in wp-includes/taxonomy-functions.php */ 3563 3563 do_action( 'edited_term_taxonomy', $term, $taxonomy->name ); 3564 3564 } … … 4231 4231 if ( empty( $object_id ) ) { 4232 4232 4233 /** This filter is documented in wp-includes/taxonomy .php */4233 /** This filter is documented in wp-includes/taxonomy-functions.php */ 4234 4234 return apply_filters( 'get_ancestors', $ancestors, $object_id, $object_type, $resource_type ); 4235 4235 }
Note: See TracChangeset
for help on using the changeset viewer.