Skip to content

Commit

Permalink
added check for defult-yes to update
Browse files Browse the repository at this point in the history
test was failing
  • Loading branch information
pbearne committed Nov 14, 2023
1 parent b7e6b4f commit 3ddacc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wp-includes/option.php
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@ function update_option( $option, $value, $autoload = null ) {
} else {
wp_cache_set( $option, $serialized_value, 'options' );
}
} elseif ( 'yes' === $update_args['autoload'] ) {
} elseif ( 'yes' === $update_args['autoload'] || 'default-yes' === $autoload ) {
// Delete the individual cache, then set in alloptions cache.
wp_cache_delete( $option, 'options' );

Expand Down

0 comments on commit 3ddacc7

Please sign in to comment.