Make WordPress Core


Ignore:
Timestamp:
06/20/2020 12:00:07 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Docs: Capitalize "ID", when referring to a post ID, term ID, etc. in a more consistent way.

See #49572.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/taxonomy.php

    r48065 r48104  
    706706 * @global wpdb $wpdb WordPress database abstraction object.
    707707 *
    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.
    709709 * @param string|array $taxonomies String of taxonomy name or Array of string values of taxonomy names.
    710710 * @param array|string $args       Change the order of the object_ids, either ASC or DESC.
     
    14381438 * Check if a term is an ancestor of another term.
    14391439 *
    1440  * You can use either an id or the term object for both parameters.
     1440 * You can use either an ID or the term object for both parameters.
    14411441 *
    14421442 * @since 3.4.0
     
    18961896     */
    18971897    do_action( 'delete_term_taxonomy', $tt_id );
     1898
    18981899    $wpdb->delete( $wpdb->term_taxonomy, array( 'term_taxonomy_id' => $tt_id ) );
    18991900
     
    24332434 *
    24342435 * @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.
    24362437 *                                    Will replace all existing related terms in this taxonomy. Passing an
    24372438 *                                    empty value will remove all related terms.
     
    26762677         */
    26772678        do_action( 'delete_term_relationships', $object_id, $tt_ids, $taxonomy );
     2679
    26782680        $deleted = $wpdb->query( $wpdb->prepare( "DELETE FROM $wpdb->term_relationships WHERE object_id = %d AND term_taxonomy_id IN ($in_tt_ids)", $object_id ) );
    26792681
     
    29832985
    29842986    $wpdb->update( $wpdb->terms, $data, compact( 'term_id' ) );
     2987
    29852988    if ( empty( $slug ) ) {
    29862989        $slug = sanitize_title( $name, $term_id );
     
    32383241
    32393242/**
    3240  * Will remove all of the term ids from the cache.
     3243 * Will remove all of the term IDs from the cache.
    32413244 *
    32423245 * @since 2.3.0
     
    36373640    }
    36383641
    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.
    36403643    $tax_obj      = get_taxonomy( $taxonomy );
    36413644    $object_types = esc_sql( $tax_obj->object_type );
     
    46034606 * @param int    $term_id  The term we're checking.
    46044607 * @param string $taxonomy The taxonomy of the term we're checking.
    4605  *
    46064608 * @return int The new parent for the term.
    46074609 */
Note: See TracChangeset for help on using the changeset viewer.