[wp-trac] [WordPress Trac] #38903: Prevent `update_option()` from updating when the old and new values contain identical objects.
WordPress Trac
noreply at wordpress.org
Sat Dec 10 04:22:42 UTC 2016
#38903: Prevent `update_option()` from updating when the old and new values contain
identical objects.
--------------------------------------------+----------------------------
Reporter: peterwilsoncc | Owner: peterwilsoncc
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 4.8
Component: General | Version: 2.0
Severity: normal | Resolution:
Keywords: early has-patch has-unit-tests | Focuses:
--------------------------------------------+----------------------------
Comment (by peterwilsoncc):
In [attachment:38903.4.diff]:
* avoid the `maybe_serialize` calls if they are not needed. This is to
avoid the performance cost of serialization in most instances.
* minor formatting changes in the unit tests for coding standards
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38903#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list