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/meta.php

    r23416 r23554  
    4343    $column = esc_sql($meta_type . '_id');
    4444
     45    // expected_slashed ($meta_key)
     46    $meta_key = stripslashes($meta_key);
     47    $meta_value = stripslashes_deep($meta_value);
    4548    $meta_value = sanitize_meta( $meta_key, $meta_value, $meta_type );
    4649
     
    111114    $id_column = 'user' == $meta_type ? 'umeta_id' : 'meta_id';
    112115
     116    // expected_slashed ($meta_key)
     117    $meta_key = stripslashes($meta_key);
    113118    $passed_value = $meta_value;
     119    $meta_value = stripslashes_deep($meta_value);
    114120    $meta_value = sanitize_meta( $meta_key, $meta_value, $meta_type );
    115121
     
    190196    $type_column = esc_sql($meta_type . '_id');
    191197    $id_column = 'user' == $meta_type ? 'umeta_id' : 'meta_id';
     198    // expected_slashed ($meta_key)
     199    $meta_key = stripslashes($meta_key);
     200    $meta_value = stripslashes_deep($meta_value);
    192201
    193202    $check = apply_filters( "delete_{$meta_type}_metadata", null, $object_id, $meta_key, $meta_value, $delete_all );
Note: See TracChangeset for help on using the changeset viewer.