From af0e2a625c423597b3ef8124dec9f057d4553eae Mon Sep 17 00:00:00 2001 From: Paul Bearne Date: Thu, 7 Dec 2023 18:41:38 -0500 Subject: [PATCH] Update src/wp-includes/option.php Co-authored-by: Andrew Ozz <743931+azaozz@users.noreply.github.com> --- src/wp-includes/option.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/wp-includes/option.php b/src/wp-includes/option.php index 8f030667682a5..9b45ed929bdbd 100644 --- a/src/wp-includes/option.php +++ b/src/wp-includes/option.php @@ -822,8 +822,7 @@ function update_option( $option, $value, $autoload = null ) { ); if ( null !== $autoload ) { - $autoload = determine_option_autoload_value( $option, $serialized_value, $autoload ); - $update_args['autoload'] = $autoload; + $update_args['autoload'] = determine_option_autoload_value( $option, $serialized_value, $autoload ); } else { $raw_autoload = $wpdb->get_var( $wpdb->prepare( "SELECT autoload FROM $wpdb->options WHERE option_name = %s LIMIT 1", $option ) ); $allow_values = array( 'default-yes', 'default-no' );