Changeset 23554 for trunk/wp-includes/meta.php
- Timestamp:
- 03/01/2013 04:28:40 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/meta.php
r23416 r23554 43 43 $column = esc_sql($meta_type . '_id'); 44 44 45 // expected_slashed ($meta_key) 46 $meta_key = stripslashes($meta_key); 47 $meta_value = stripslashes_deep($meta_value); 45 48 $meta_value = sanitize_meta( $meta_key, $meta_value, $meta_type ); 46 49 … … 111 114 $id_column = 'user' == $meta_type ? 'umeta_id' : 'meta_id'; 112 115 116 // expected_slashed ($meta_key) 117 $meta_key = stripslashes($meta_key); 113 118 $passed_value = $meta_value; 119 $meta_value = stripslashes_deep($meta_value); 114 120 $meta_value = sanitize_meta( $meta_key, $meta_value, $meta_type ); 115 121 … … 190 196 $type_column = esc_sql($meta_type . '_id'); 191 197 $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); 192 201 193 202 $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.