Changeset 6364 for trunk/wp-includes/taxonomy.php
- Timestamp:
- 12/06/2007 07:49:33 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r6355 r6364 774 774 */ 775 775 function sanitize_term_field($field, $value, $term_id, $taxonomy, $context) { 776 if ( 'parent' == $field || 'term_id' == $field || 'count' == $field 777 || 'term_group' == $field ) 776 if ( 'parent' == $field || 'term_id' == $field || 'count' == $field || 'term_group' == $field ) 778 777 $value = (int) $value; 779 778 … … 1210 1209 $query = $wpdb->prepare( "SELECT slug FROM $wpdb->terms WHERE slug = %s AND term_id != %d", $slug, $args['term_id'] ); 1211 1210 else 1212 $query = $wpdb->prepare( "SELECT slug FROM $wpdb->terms WHERE slug = %s $where", $slug );1211 $query = $wpdb->prepare( "SELECT slug FROM $wpdb->terms WHERE slug = %s", $slug ); 1213 1212 1214 1213 if ( $wpdb->get_var( $query ) ) { … … 1472 1471 */ 1473 1472 function update_object_term_cache($object_ids, $object_type) { 1474 global $wpdb;1475 1476 1473 if ( empty($object_ids) ) 1477 1474 return;
Note: See TracChangeset
for help on using the changeset viewer.