WordPress.org

Make WordPress Core

Changeset 30724


Ignore:
Timestamp:
12/03/2014 10:16:04 AM (6 years ago)
Author:
DrewAPicture
Message:

Use the correct hash notation syntax for the wp_insert_term() DocBlock.

See #28298.

File:
1 edited

Legend:

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

    r30673 r30724  
    27622762 *
    27632763 * @param string       $term     The term to add or update.
    2764  * @param string       $taxonomy The taxonomy to which to add the term
     2764 * @param string       $taxonomy The taxonomy to which to add the term.
    27652765 * @param array|string $args {
    2766  *     Arguments to change values of the inserted term.
    2767  *
    2768  *     @type string 'alias_of'    Slug of the term to make this term an alias of.
    2769  *                                Default empty string. Accepts a term slug.
    2770  *     @type string 'description' The term description.
    2771  *                                Default empty string.
    2772  *     @type int    'parent'      The id of the parent term.
    2773  *                                Default 0.
    2774  *     @type string 'slug'        The term slug to use.
    2775  *                                Default empty string.
     2766 *     Optional. Array or string of arguments for inserting a term.
     2767 *
     2768 *     @type string $alias_of    Slug of the term to make this term an alias of.
     2769 *                               Default empty string. Accepts a term slug.
     2770 *     @type string $description The term description. Default empty string.
     2771 *     @type int    $parent      The id of the parent term. Default 0.
     2772 *     @type string $slug        The term slug to use. Default empty string.
    27762773 * }
    2777  * @return array|WP_Error An array containing the term_id and term_taxonomy_id, WP_Error otherwise.
     2774 * @return array|WP_Error An array containing the `term_id` and `term_taxonomy_id`,
     2775 *                        {@see WP_Error} otherwise.
    27782776 */
    27792777function wp_insert_term( $term, $taxonomy, $args = array() ) {
Note: See TracChangeset for help on using the changeset viewer.