Ticket #9345: wp_update_term check for WP Error.diff
File wp_update_term check for WP Error.diff, 660 bytes (added by , 15 years ago) |
---|
-
Users/simon/Projects/WordPress-Bleeding/site/wordpress/wp-includes/taxonomy.php
1561 1561 1562 1562 // First, get all of the original args 1563 1563 $term = get_term ($term_id, $taxonomy, ARRAY_A); 1564 // Check it's not an error, and return the error immediately if it is 1565 if ( is_wp_error( $term ) ) return $term; 1564 1566 1565 1567 // Escape data pulled from DB. 1566 1568 $term = add_magic_quotes($term);