Wordpress/tests/phpunit/tests/option
Peter Wilson 7d8ce1e287 Options: Avoid unnecessary DB calls when updating network options.
Adds a `maybe_serialize()` comparison for the old and new values in `update_network_option()` to avoid unnecessary database writes when options contain identical objects.

Props bor0.
Fixes #44956.



git-svn-id: https://develop.svn.wordpress.org/trunk@44662 602fd350-edb4-49c9-b593-d223f7449a82
2019-01-21 04:26:33 +00:00
..
multisite.php Code is Poetry. 2017-11-30 23:09:33 +00:00
networkOption.php Options: Avoid unnecessary DB calls when updating network options. 2019-01-21 04:26:33 +00:00
option.php Code is Poetry. 2017-11-30 23:09:33 +00:00
registration.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
sanitize-option.php Tests: Correct erroneous @covers and @use tags. 2018-02-01 16:08:04 +00:00
siteOption.php Code is Poetry. 2017-11-30 23:09:33 +00:00
siteTransient.php Code is Poetry. 2017-11-30 23:09:33 +00:00
slashes.php Code is Poetry. 2017-11-30 23:09:33 +00:00
themeMods.php Add some theme mod unit tests. 2015-08-30 03:42:49 +00:00
transient.php Code is Poetry. 2017-11-30 23:09:33 +00:00
updateOption.php Code is Poetry. 2017-11-30 23:09:33 +00:00
userSettings.php Code is Poetry. 2017-11-30 23:09:33 +00:00
wpLoadAllOptions.php Code is Poetry. 2017-11-30 23:09:33 +00:00