Changeset 58105
- Timestamp:
- 05/06/2024 04:33:27 PM (5 months ago)
- Location:
- trunk/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ajax-actions.php
r57785 r58105 193 193 update_site_option( 'can_compress_scripts', 0 ); 194 194 } else { 195 update_option( 'can_compress_scripts', 0, ' yes' );195 update_option( 'can_compress_scripts', 0, 'on' ); 196 196 } 197 197 wp_die( 0 ); … … 232 232 update_site_option( 'can_compress_scripts', 0 ); 233 233 } else { 234 update_option( 'can_compress_scripts', 0, ' yes' );234 update_option( 'can_compress_scripts', 0, 'on' ); 235 235 } 236 236 } elseif ( 'yes' === $_GET['test'] ) { … … 240 240 update_site_option( 'can_compress_scripts', 1 ); 241 241 } else { 242 update_option( 'can_compress_scripts', 1, ' yes' );242 update_option( 'can_compress_scripts', 1, 'on' ); 243 243 } 244 244 } -
trunk/src/wp-admin/includes/class-wp-upgrader.php
r58022 r58105 1017 1017 1018 1018 // Try to lock. 1019 $lock_result = $wpdb->query( $wpdb->prepare( "INSERT IGNORE INTO `$wpdb->options` ( `option_name`, `option_value`, `autoload` ) VALUES (%s, %s, ' no') /* LOCK */", $lock_option, time() ) );1019 $lock_result = $wpdb->query( $wpdb->prepare( "INSERT IGNORE INTO `$wpdb->options` ( `option_name`, `option_value`, `autoload` ) VALUES (%s, %s, 'off') /* LOCK */", $lock_option, time() ) ); 1020 1020 1021 1021 if ( ! $lock_result ) { -
trunk/src/wp-admin/includes/schema.php
r57524 r58105 595 595 596 596 if ( in_array( $option, $fat_options, true ) ) { 597 $autoload = ' no';597 $autoload = 'off'; 598 598 } else { 599 $autoload = ' yes';599 $autoload = 'on'; 600 600 } 601 601 -
trunk/src/wp-includes/option.php
r58075 r58105 1413 1413 1414 1414 if ( false === get_option( $transient_option ) ) { 1415 $autoload = ' yes';1415 $autoload = 'on'; 1416 1416 if ( $expiration ) { 1417 $autoload = ' no';1418 add_option( $transient_timeout, time() + $expiration, '', ' no' );1417 $autoload = 'off'; 1418 add_option( $transient_timeout, time() + $expiration, '', 'off' ); 1419 1419 } 1420 1420 $result = add_option( $transient_option, $value, '', $autoload ); … … 1429 1429 if ( false === get_option( $transient_timeout ) ) { 1430 1430 delete_option( $transient_option ); 1431 add_option( $transient_timeout, time() + $expiration, '', ' no' );1432 $result = add_option( $transient_option, $value, '', ' no' );1431 add_option( $transient_timeout, time() + $expiration, '', 'off' ); 1432 $result = add_option( $transient_option, $value, '', 'off' ); 1433 1433 $update = false; 1434 1434 } else { … … 2018 2018 2019 2019 if ( ! is_multisite() ) { 2020 $result = add_option( $option, $value, '', ' no' );2020 $result = add_option( $option, $value, '', 'off' ); 2021 2021 } else { 2022 2022 $cache_key = "$network_id:$option"; … … 2264 2264 2265 2265 if ( ! is_multisite() ) { 2266 $result = update_option( $option, $value, ' no' );2266 $result = update_option( $option, $value, 'off' ); 2267 2267 } else { 2268 2268 $value = sanitize_option( $option, $value ); -
trunk/src/wp-includes/revision.php
r56984 r58105 1013 1013 $lock = "revision-upgrade-{$post->ID}"; 1014 1014 $now = time(); 1015 $result = $wpdb->query( $wpdb->prepare( "INSERT IGNORE INTO `$wpdb->options` (`option_name`, `option_value`, `autoload`) VALUES (%s, %s, ' no') /* LOCK */", $lock, $now ) );1015 $result = $wpdb->query( $wpdb->prepare( "INSERT IGNORE INTO `$wpdb->options` (`option_name`, `option_value`, `autoload`) VALUES (%s, %s, 'off') /* LOCK */", $lock, $now ) ); 1016 1016 1017 1017 if ( ! $result ) { -
trunk/src/wp-includes/taxonomy.php
r57644 r58105 4366 4366 4367 4367 // Try to lock. 4368 $lock_result = $wpdb->query( $wpdb->prepare( "INSERT IGNORE INTO `$wpdb->options` ( `option_name`, `option_value`, `autoload` ) VALUES (%s, %s, ' no') /* LOCK */", $lock_name, time() ) );4368 $lock_result = $wpdb->query( $wpdb->prepare( "INSERT IGNORE INTO `$wpdb->options` ( `option_name`, `option_value`, `autoload` ) VALUES (%s, %s, 'off') /* LOCK */", $lock_name, time() ) ); 4369 4369 4370 4370 if ( ! $lock_result ) {
Note: See TracChangeset
for help on using the changeset viewer.