Changeset 18816 for trunk/wp-includes/meta.php
- Timestamp:
- 09/29/2011 07:37:58 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/meta.php
r18789 r18816 116 116 // expected_slashed ($meta_key) 117 117 $meta_key = stripslashes($meta_key); 118 $passed_value = $meta_value; 118 119 $meta_value = stripslashes_deep($meta_value); 119 120 $meta_value = sanitize_meta( $meta_key, $meta_value, $meta_type ); … … 124 125 125 126 if ( ! $meta_id = $wpdb->get_var( $wpdb->prepare( "SELECT $id_column FROM $table WHERE meta_key = %s AND $column = %d", $meta_key, $object_id ) ) ) 126 return add_metadata($meta_type, $object_id, $meta_key, $ meta_value);127 return add_metadata($meta_type, $object_id, $meta_key, $passed_value); 127 128 128 129 // Compare existing value to new value if no prev value given and the key exists only once.
Note: See TracChangeset
for help on using the changeset viewer.