Changeset 39564 for trunk/src/wp-includes/option.php
- Timestamp:
- 12/11/2016 09:42:12 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/option.php
r39470 r39564 296 296 $value = apply_filters( 'pre_update_option', $value, $option, $old_value ); 297 297 298 // If the new and old values are the same, no need to update. 299 if ( $value === $old_value ) 298 /* 299 * If the new and old values are the same, no need to update. 300 * 301 * Unserialized values will be adequate in most cases. If the unserialized 302 * data differs, the (maybe) serialized data is checked to avoid 303 * unnecessary database calls for otherwise identical object instances. 304 * 305 * See https://core.trac.wordpress.org/ticket/38903 306 */ 307 if ( $value === $old_value || maybe_serialize( $value ) === maybe_serialize( $old_value ) ) { 300 308 return false; 309 } 301 310 302 311 /** This filter is documented in wp-includes/option.php */
Note: See TracChangeset
for help on using the changeset viewer.