Make WordPress Core

Changeset 11068


Ignore:
Timestamp:
04/23/2009 08:05:36 AM (15 years ago)
Author:
ryan
Message:

Clarify args to wp_update_term(). Props simonwheatley, johnbillion. fixes #9293

File:
1 edited

Legend:

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

    r11037 r11068  
    15801580 *  id and taxonomy id.
    15811581 *
    1582  * @param int $term The ID of the term
     1582 * @param int $term_id The ID of the term
    15831583 * @param string $taxonomy The context in which to relate the term to the object.
    15841584 * @param array|string $args Overwrite term field values
    15851585 * @return array|WP_Error Returns Term ID and Taxonomy Term ID
    15861586 */
    1587 function wp_update_term( $term, $taxonomy, $args = array() ) {
     1587function wp_update_term( $term_id, $taxonomy, $args = array() ) {
    15881588    global $wpdb;
    15891589
     
    15911591        return new WP_Error('invalid_taxonomy', __('Invalid taxonomy'));
    15921592
    1593     $term_id = (int) $term;
     1593    $term_id = (int) $term_id;
    15941594
    15951595    // First, get all of the original args
Note: See TracChangeset for help on using the changeset viewer.