From 1b23dd8f05c9cd6e4d4c6ddb699b0bad1e93be64 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 2 Jul 2014 01:28:15 +0000 Subject: [PATCH] Clarify the docs and add more unit tests for wp_set_object_terms(). props DrewAPicture. fixes #26570. Built from https://develop.svn.wordpress.org/trunk@28951 git-svn-id: http://core.svn.wordpress.org/trunk@28748 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/taxonomy.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index 426e8decce..73e9214188 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -2617,14 +2617,14 @@ function wp_insert_term( $term, $taxonomy, $args = array() ) { * @since 2.3.0 * @uses wp_remove_object_terms() * - * @param int $object_id The object to relate to. - * @param array|int|string $terms The slug or id of the term, will replace all existing - * related terms in this taxonomy. - * @param array|string $taxonomy The context in which to relate the term to the object. - * @param bool $append If false will delete difference of terms. - * @return array|WP_Error Affected Term IDs + * @param int $object_id The object to relate to. + * @param array|int|string $terms A single term slug, single term id, or array of either term slugs or ids. + * Will replace all existing related terms in this taxonomy. + * @param array|string $taxonomy The context in which to relate the term to the object. + * @param bool $append If false will delete difference of terms. + * @return array|WP_Error Affected Term IDs. */ -function wp_set_object_terms($object_id, $terms, $taxonomy, $append = false) { +function wp_set_object_terms( $object_id, $terms, $taxonomy, $append = false ) { global $wpdb; $object_id = (int) $object_id;