Changeset 11068
- Timestamp:
- 04/23/2009 08:05:36 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r11037 r11068 1580 1580 * id and taxonomy id. 1581 1581 * 1582 * @param int $term The ID of the term1582 * @param int $term_id The ID of the term 1583 1583 * @param string $taxonomy The context in which to relate the term to the object. 1584 1584 * @param array|string $args Overwrite term field values 1585 1585 * @return array|WP_Error Returns Term ID and Taxonomy Term ID 1586 1586 */ 1587 function wp_update_term( $term , $taxonomy, $args = array() ) {1587 function wp_update_term( $term_id, $taxonomy, $args = array() ) { 1588 1588 global $wpdb; 1589 1589 … … 1591 1591 return new WP_Error('invalid_taxonomy', __('Invalid taxonomy')); 1592 1592 1593 $term_id = (int) $term ;1593 $term_id = (int) $term_id; 1594 1594 1595 1595 // First, get all of the original args
Note: See TracChangeset
for help on using the changeset viewer.