Ticket #9293: 9293.patch
File 9293.patch, 1.0 KB (added by , 16 years ago) |
---|
-
wp-includes/taxonomy.php
1571 1571 * @uses apply_filters() Will call the 'term_id_filter' filter and pass the term 1572 1572 * id and taxonomy id. 1573 1573 * 1574 * @param int $term The ID of the term1574 * @param int $term_id The ID of the term 1575 1575 * @param string $taxonomy The context in which to relate the term to the object. 1576 1576 * @param array|string $args Overwrite term field values 1577 1577 * @return array|WP_Error Returns Term ID and Taxonomy Term ID 1578 1578 */ 1579 function wp_update_term( $term , $taxonomy, $args = array() ) {1579 function wp_update_term( $term_id, $taxonomy, $args = array() ) { 1580 1580 global $wpdb; 1581 1581 1582 1582 if ( ! is_taxonomy($taxonomy) ) 1583 1583 return new WP_Error('invalid_taxonomy', __('Invalid taxonomy')); 1584 1584 1585 $term_id = (int) $term ;1585 $term_id = (int) $term_id; 1586 1586 1587 1587 // First, get all of the original args 1588 1588 $term = get_term ($term_id, $taxonomy, ARRAY_A);