Skip to content

Commit

Permalink
Update src/wp-includes/option.php
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Ozz <[email protected]>
  • Loading branch information
pbearne and azaozz authored Dec 7, 2023
1 parent c73dd6f commit af0e2a6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/wp-includes/option.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
Expand Down

0 comments on commit af0e2a6

Please sign in to comment.