WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/21/2019 05:40:58 PM (3 months ago)
Author:
johnbillion
Message:

Docs: Docblock corrections and improvements, mostly related to various pre_* filters.

See #47110

File:
1 edited

Legend:

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

    r46196 r46232  
    13591359 *
    13601360 * @param int|string $term     The term to check. Accepts term ID, slug, or name.
    1361  * @param string     $taxonomy The taxonomy name to use
     1361 * @param string     $taxonomy Optional. The taxonomy name to use.
    13621362 * @param int        $parent   Optional. ID of parent term under which to confine the exists search.
    13631363 * @return mixed Returns null if the term does not exist. Returns the term ID
     
    20982098 * @since 2.3.0
    20992099 *
    2100  * @param string       $term     The term to add or update.
     2100 * @param string       $term     The term name to add or update.
    21012101 * @param string       $taxonomy The taxonomy to which to add the term.
    21022102 * @param array|string $args {
     
    21182118        return new WP_Error( 'invalid_taxonomy', __( 'Invalid taxonomy.' ) );
    21192119    }
     2120
    21202121    /**
    21212122     * Filters a term before it is sanitized and inserted into the database.
     
    21232124     * @since 3.0.0
    21242125     *
    2125      * @param string $term     The term to add or update.
    2126      * @param string $taxonomy Taxonomy slug.
     2126     * @param string|WP_Error $term     The term name to add or update, or a WP_Error object if there's an error.
     2127     * @param string          $taxonomy Taxonomy slug.
    21272128     */
    21282129    $term = apply_filters( 'pre_insert_term', $term, $taxonomy );
Note: See TracChangeset for help on using the changeset viewer.