Make WordPress Core


Ignore:
Timestamp:
12/12/2021 02:51:34 PM (2 years ago)
Author:
SergeyBiryukov
Message:

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

Follow-up to [48104].

See #53399.

File:
1 edited

Legend:

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

    r52332 r52357  
    11431143 * @since 2.3.0
    11441144 *
    1145  * @param int    $term_id  ID of Term to get children.
    1146  * @param string $taxonomy Taxonomy Name.
     1145 * @param int    $term_id  ID of term to get children.
     1146 * @param string $taxonomy Taxonomy name.
    11471147 * @return array|WP_Error List of Term IDs. WP_Error returned if `$taxonomy` does not exist.
    11481148 */
     
    11871187 * @param string      $field    Term field to fetch.
    11881188 * @param int|WP_Term $term     Term ID or object.
    1189  * @param string      $taxonomy Optional. Taxonomy Name. Default empty.
     1189 * @param string      $taxonomy Optional. Taxonomy name. Default empty.
    11901190 * @param string      $context  Optional. How to sanitize term fields. Look at sanitize_term_field() for available options.
    11911191 *                              Default 'display'.
     
    16871687 * @param string $value    Search for this term value.
    16881688 * @param int    $term_id  Term ID.
    1689  * @param string $taxonomy Taxonomy Name.
     1689 * @param string $taxonomy Taxonomy name.
    16901690 * @param string $context  Context in which to sanitize the term field.
    16911691 *                         Accepts 'raw', 'edit', 'db', 'display', 'rss',
     
    19101910 * @since 2.3.0
    19111911 *
    1912  * @param int          $object_id  The term Object Id that refers to the term.
    1913  * @param string|array $taxonomies List of Taxonomy Names or single Taxonomy name.
     1912 * @param int          $object_id  The term object ID that refers to the term.
     1913 * @param string|array $taxonomies List of taxonomy names or single taxonomy name.
    19141914 */
    19151915function wp_delete_object_term_relationships( $object_id, $taxonomies ) {
     
    19401940 *
    19411941 * @param int          $term     Term ID.
    1942  * @param string       $taxonomy Taxonomy Name.
     1942 * @param string       $taxonomy Taxonomy name.
    19431943 * @param array|string $args {
    19441944 *     Optional. Array of arguments to override the default term ID. Default empty array.
     
    20062006     *
    20072007     * @param int    $term     Term ID.
    2008      * @param string $taxonomy Taxonomy Name.
     2008     * @param string $taxonomy Taxonomy name.
    20092009     */
    20102010    do_action( 'pre_delete_term', $term, $taxonomy );
Note: See TracChangeset for help on using the changeset viewer.