Changeset 44662 for trunk/src/wp-includes/option.php
- Timestamp:
- 01/21/2019 04:26:33 AM (8 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/option.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/option.php
r44463 r44662 1584 1584 $value = apply_filters( "pre_update_site_option_{$option}", $value, $old_value, $option, $network_id ); 1585 1585 1586 if ( $value === $old_value ) { 1586 /* 1587 * If the new and old values are the same, no need to update. 1588 * 1589 * Unserialized values will be adequate in most cases. If the unserialized 1590 * data differs, the (maybe) serialized data is checked to avoid 1591 * unnecessary database calls for otherwise identical object instances. 1592 * 1593 * See https://core.trac.wordpress.org/ticket/44956 1594 */ 1595 if ( $value === $old_value || maybe_serialize( $value ) === maybe_serialize( $old_value ) ) { 1587 1596 return false; 1588 1597 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)