Ticket #28315: 28315.diff
File 28315.diff, 465 bytes (added by , 11 years ago) |
---|
-
wp-includes/meta.php
diff --git wp-includes/meta.php wp-includes/meta.php index 2f272f4..45892a8 100644
function update_metadata($meta_type, $object_id, $meta_key, $meta_value, $prev_v 137 137 if ( !$meta_type || !$meta_key ) 138 138 return false; 139 139 140 if ( ! $object_id = absint($object_id) )140 if ( !is_scalar($object_id) || !$object_id = absint($object_id) ) 141 141 return false; 142 142 143 143 if ( ! $table = _get_meta_table($meta_type) )