Changeset 23416 for trunk/wp-includes/taxonomy.php
- Timestamp:
- 02/14/2013 10:51:06 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r23401 r23416 954 954 return false; 955 955 } else if ( 'name' == $field ) { 956 // Assume already escaped957 $value = stripslashes($value);958 956 $field = 't.name'; 959 957 } else { … … 1495 1493 } 1496 1494 1497 $term = trim( stripslashes( $term ));1495 $term = trim( $term ); 1498 1496 1499 1497 if ( '' === $slug = sanitize_title($term) ) … … 2056 2054 $args = sanitize_term($args, $taxonomy, 'db'); 2057 2055 extract($args, EXTR_SKIP); 2058 2059 // expected_slashed ($name)2060 $name = stripslashes($name);2061 $description = stripslashes($description);2062 2056 2063 2057 if ( empty($slug) ) … … 2440 2434 return $term; 2441 2435 2442 // Escape data pulled from DB.2443 $term = add_magic_quotes($term);2444 2445 2436 // Merge old and new args with new args overwriting old ones. 2446 2437 $args = array_merge($term, $args); … … 2450 2441 $args = sanitize_term($args, $taxonomy, 'db'); 2451 2442 extract($args, EXTR_SKIP); 2452 2453 // expected_slashed ($name)2454 $name = stripslashes($name);2455 $description = stripslashes($description);2456 2443 2457 2444 if ( '' == trim($name) )
Note: See TracChangeset
for help on using the changeset viewer.