From fe2cea5e10b4b884abd04c6ec27d244a11c6dbc0 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 23 Apr 2009 08:05:36 +0000 Subject: [PATCH] Clarify args to wp_update_term(). Props simonwheatley, johnbillion. fixes #9293 git-svn-id: https://develop.svn.wordpress.org/trunk@11068 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/taxonomy.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index 46e01b52b8..97141fd999 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -1579,18 +1579,18 @@ function wp_unique_term_slug($slug, $term) { * @uses apply_filters() Will call the 'term_id_filter' filter and pass the term * id and taxonomy id. * - * @param int $term The ID of the term + * @param int $term_id The ID of the term * @param string $taxonomy The context in which to relate the term to the object. * @param array|string $args Overwrite term field values * @return array|WP_Error Returns Term ID and Taxonomy Term ID */ -function wp_update_term( $term, $taxonomy, $args = array() ) { +function wp_update_term( $term_id, $taxonomy, $args = array() ) { global $wpdb; if ( ! is_taxonomy($taxonomy) ) return new WP_Error('invalid_taxonomy', __('Invalid taxonomy')); - $term_id = (int) $term; + $term_id = (int) $term_id; // First, get all of the original args $term = get_term ($term_id, $taxonomy, ARRAY_A);