id summary reporter owner description type status priority milestone component version severity resolution keywords cc focuses 38903 Prevent `update_option()` from updating when the old and new values contain identical objects. peterwilsoncc peterwilsoncc "When an object is included in an option, passing an unchanged value to `update_option` will trigger an UPDATE query. Given the data below, the `meta_data` will have a different resource ID for the old and new values. `$value === $old_value` will always evaluate untrue and the database will be updated and the caches cleared. {{{ array(2) { [""url""]=> string(85) ""http://src.wordpress-develop.dev/wp-content/uploads/2016/10/cropped-Blurry-Lights.jpg"" [""meta_data""]=> object(stdClass)#370 (3) { [""attachment_id""]=> int(292) [""height""]=> int(708) [""width""]=> int(1260) } } }}} Followup from #38866, props due @bradyvercher for finding." defect (bug) closed normal 4.8 Options, Meta APIs 2.0 normal fixed early has-patch has-unit-tests