Make WordPress Core


Ignore:
Timestamp:
03/01/2013 04:28:40 PM (12 years ago)
Author:
ryan
Message:

Revert 23416, 23419, 23445 except for wp_reset_vars() changes. We are going a different direction with the slashing cleanup, so resetting to a clean slate. see #21767

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/taxonomy.php

    r23552 r23554  
    959959            return false;
    960960    } else if ( 'name' == $field ) {
     961        // Assume already escaped
     962        $value = stripslashes($value);
    961963        $field = 't.name';
    962964    } else {
     
    14981500    }
    14991501
    1500     $term = trim( $term );
     1502    $term = trim( stripslashes( $term ) );
    15011503
    15021504    if ( '' === $slug = sanitize_title($term) )
     
    20592061    $args = sanitize_term($args, $taxonomy, 'db');
    20602062    extract($args, EXTR_SKIP);
     2063
     2064    // expected_slashed ($name)
     2065    $name = stripslashes($name);
     2066    $description = stripslashes($description);
    20612067
    20622068    if ( empty($slug) )
     
    24392445        return $term;
    24402446
     2447    // Escape data pulled from DB.
     2448    $term = add_magic_quotes($term);
     2449
    24412450    // Merge old and new args with new args overwriting old ones.
    24422451    $args = array_merge($term, $args);
     
    24462455    $args = sanitize_term($args, $taxonomy, 'db');
    24472456    extract($args, EXTR_SKIP);
     2457
     2458    // expected_slashed ($name)
     2459    $name = stripslashes($name);
     2460    $description = stripslashes($description);
    24482461
    24492462    if ( '' == trim($name) )
Note: See TracChangeset for help on using the changeset viewer.