Changeset 35725 for trunk/src/wp-includes/taxonomy.php
- Timestamp:
- 11/22/2015 03:50:32 AM (10 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/taxonomy.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy.php
r35718 r35725 1475 1475 wp_cache_add( $cache_key, array(), 'terms', DAY_IN_SECONDS ); 1476 1476 1477 /** This filter is documented in wp-includes/taxonomy -functions.php */1477 /** This filter is documented in wp-includes/taxonomy.php */ 1478 1478 return apply_filters( 'get_terms', array(), $taxonomies, $args ); 1479 1479 } … … 1552 1552 } 1553 1553 1554 /** This filter is documented in wp-includes/taxonomy -functions.php */1554 /** This filter is documented in wp-includes/taxonomy.php */ 1555 1555 return apply_filters( 'get_terms', $terms, $taxonomies, $args ); 1556 1556 } … … 2661 2661 $slug = sanitize_title($slug, $term_id); 2662 2662 2663 /** This action is documented in wp-includes/taxonomy -functions.php */2663 /** This action is documented in wp-includes/taxonomy.php */ 2664 2664 do_action( 'edit_terms', $term_id, $taxonomy ); 2665 2665 $wpdb->update( $wpdb->terms, compact( 'slug' ), compact( 'term_id' ) ); 2666 2666 2667 /** This action is documented in wp-includes/taxonomy -functions.php */2667 /** This action is documented in wp-includes/taxonomy.php */ 2668 2668 do_action( 'edited_terms', $term_id, $taxonomy ); 2669 2669 } … … 3305 3305 do_action( "edit_$taxonomy", $term_id, $tt_id ); 3306 3306 3307 /** This filter is documented in wp-includes/taxonomy -functions.php */3307 /** This filter is documented in wp-includes/taxonomy.php */ 3308 3308 $term_id = apply_filters( 'term_id_filter', $term_id, $tt_id ); 3309 3309 … … 3863 3863 $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 ) ); 3864 3864 3865 /** This action is documented in wp-includes/taxonomy -functions.php */3865 /** This action is documented in wp-includes/taxonomy.php */ 3866 3866 do_action( 'edit_term_taxonomy', $term, $taxonomy->name ); 3867 3867 $wpdb->update( $wpdb->term_taxonomy, compact( 'count' ), array( 'term_taxonomy_id' => $term ) ); 3868 3868 3869 /** This action is documented in wp-includes/taxonomy -functions.php */3869 /** This action is documented in wp-includes/taxonomy.php */ 3870 3870 do_action( 'edited_term_taxonomy', $term, $taxonomy->name ); 3871 3871 } … … 3890 3890 $count = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $wpdb->term_relationships WHERE term_taxonomy_id = %d", $term ) ); 3891 3891 3892 /** This action is documented in wp-includes/taxonomy -functions.php */3892 /** This action is documented in wp-includes/taxonomy.php */ 3893 3893 do_action( 'edit_term_taxonomy', $term, $taxonomy->name ); 3894 3894 $wpdb->update( $wpdb->term_taxonomy, compact( 'count' ), array( 'term_taxonomy_id' => $term ) ); 3895 3895 3896 /** This action is documented in wp-includes/taxonomy -functions.php */3896 /** This action is documented in wp-includes/taxonomy.php */ 3897 3897 do_action( 'edited_term_taxonomy', $term, $taxonomy->name ); 3898 3898 } … … 4600 4600 if ( empty( $object_id ) ) { 4601 4601 4602 /** This filter is documented in wp-includes/taxonomy -functions.php */4602 /** This filter is documented in wp-includes/taxonomy.php */ 4603 4603 return apply_filters( 'get_ancestors', $ancestors, $object_id, $object_type, $resource_type ); 4604 4604 }
Note: See TracChangeset
for help on using the changeset viewer.