Make WordPress Core

Ticket #36690: 36690.diff

File 36690.diff, 1.4 KB (added by barryceelen, 9 years ago)

Updates the description of the $terms param

  • wp-includes/taxonomy.php

    diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php
    index 9323bd9..9ee4282 100644
    a b function wp_insert_term( $term, $taxonomy, $args = array() ) { 
    29682968 *
    29692969 * @global wpdb $wpdb The WordPress database abstraction object.
    29702970 *
    2971  * @param int              $object_id The object to relate to.
    2972  * @param array|int|string $terms     A single term slug, single term id, or array of either term slugs or ids.
    2973  *                                    Will replace all existing related terms in this taxonomy.
    2974  * @param string           $taxonomy  The context in which to relate the term to the object.
    2975  * @param bool             $append    Optional. If false will delete difference of terms. Default false.
     2971 * @param int     $object_id The object to relate to.
     2972 * @param mixed  $terms     A single term slug, single term id, or array of either term slugs or ids.
     2973 *                           Will replace all existing related terms in this taxonomy. An empty value will remove all related terms.
     2974 * @param string  $taxonomy  The context in which to relate the term to the object.
     2975 * @param bool    $append    Optional. If false will delete difference of terms. Default false.
    29762976 * @return array|WP_Error Term taxonomy IDs of the affected terms.
    29772977 */
    29782978function wp_set_object_terms( $object_id, $terms, $taxonomy, $append = false ) {