Skip to content

Commit

Permalink
Skip equal check for filtered option values.
Browse files Browse the repository at this point in the history
  • Loading branch information
costdev committed Oct 14, 2023
1 parent f30f5e1 commit 945a2df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/wp-includes/option.php
Original file line number Diff line number Diff line change
Expand Up @@ -800,6 +800,9 @@ function update_option( $option, $value, $autoload = null ) {
if (
$value === $raw_old_value ||
(
// Do not check filtered option values.
false === has_filter( "pre_option_{$option}" ) &&
false === has_filter( 'pre_option' ) &&
$raw_old_value !== $default_value &&
_is_equal_database_value( $raw_old_value, $value )
)
Expand Down

0 comments on commit 945a2df

Please sign in to comment.