Make WordPress Core


Ignore:
Timestamp:
03/09/2016 04:16:29 PM (9 years ago)
Author:
boonebgorges
Message:

Correct @return annotation for wp_set_object_terms() and related functions.

The return value is an array of term taxonomy IDs, not term IDs.

Fixes #36182.

File:
1 edited

Legend:

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

    r36712 r36896  
    29742974 * @param string           $taxonomy  The context in which to relate the term to the object.
    29752975 * @param bool             $append    Optional. If false will delete difference of terms. Default false.
    2976  * @return array|WP_Error Affected Term IDs.
     2976 * @return array|WP_Error Term taxonomy IDs of the affected terms.
    29772977 */
    29782978function wp_set_object_terms( $object_id, $terms, $taxonomy, $append = false ) {
     
    30953095 * @param array|int|string $terms     The slug(s) or ID(s) of the term(s) to add.
    30963096 * @param array|string     $taxonomy  Taxonomy name.
    3097  * @return array|WP_Error Affected Term IDs
     3097 * @return array|WP_Error Term taxonomy IDs of the affected terms.
    30983098 */
    30993099function wp_add_object_terms( $object_id, $terms, $taxonomy ) {
Note: See TracChangeset for help on using the changeset viewer.