Changeset 48104 for trunk/src/wp-includes/taxonomy.php
- Timestamp:
- 06/20/2020 12:00:07 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy.php
r48065 r48104 706 706 * @global wpdb $wpdb WordPress database abstraction object. 707 707 * 708 * @param int|array $term_ids Term id or array of term ids of terms that will be used.708 * @param int|array $term_ids Term ID or array of term IDs of terms that will be used. 709 709 * @param string|array $taxonomies String of taxonomy name or Array of string values of taxonomy names. 710 710 * @param array|string $args Change the order of the object_ids, either ASC or DESC. … … 1438 1438 * Check if a term is an ancestor of another term. 1439 1439 * 1440 * You can use either an idor the term object for both parameters.1440 * You can use either an ID or the term object for both parameters. 1441 1441 * 1442 1442 * @since 3.4.0 … … 1896 1896 */ 1897 1897 do_action( 'delete_term_taxonomy', $tt_id ); 1898 1898 1899 $wpdb->delete( $wpdb->term_taxonomy, array( 'term_taxonomy_id' => $tt_id ) ); 1899 1900 … … 2433 2434 * 2434 2435 * @param int $object_id The object to relate to. 2435 * @param string|int|array $terms A single term slug, single term id, or array of either term slugs or ids.2436 * @param string|int|array $terms A single term slug, single term ID, or array of either term slugs or IDs. 2436 2437 * Will replace all existing related terms in this taxonomy. Passing an 2437 2438 * empty value will remove all related terms. … … 2676 2677 */ 2677 2678 do_action( 'delete_term_relationships', $object_id, $tt_ids, $taxonomy ); 2679 2678 2680 $deleted = $wpdb->query( $wpdb->prepare( "DELETE FROM $wpdb->term_relationships WHERE object_id = %d AND term_taxonomy_id IN ($in_tt_ids)", $object_id ) ); 2679 2681 … … 2983 2985 2984 2986 $wpdb->update( $wpdb->terms, $data, compact( 'term_id' ) ); 2987 2985 2988 if ( empty( $slug ) ) { 2986 2989 $slug = sanitize_title( $name, $term_id ); … … 3238 3241 3239 3242 /** 3240 * Will remove all of the term ids from the cache.3243 * Will remove all of the term IDs from the cache. 3241 3244 * 3242 3245 * @since 2.3.0 … … 3637 3640 } 3638 3641 3639 // Get the object and term ids and stick them in a lookup table.3642 // Get the object and term IDs and stick them in a lookup table. 3640 3643 $tax_obj = get_taxonomy( $taxonomy ); 3641 3644 $object_types = esc_sql( $tax_obj->object_type ); … … 4603 4606 * @param int $term_id The term we're checking. 4604 4607 * @param string $taxonomy The taxonomy of the term we're checking. 4605 *4606 4608 * @return int The new parent for the term. 4607 4609 */
Note: See TracChangeset
for help on using the changeset viewer.