Changeset 58416
- Timestamp:
- 06/14/2024 03:19:20 PM (4 months ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ajax-actions.php
r58287 r58416 193 193 update_site_option( 'can_compress_scripts', 0 ); 194 194 } else { 195 update_option( 'can_compress_scripts', 0, 'on');195 update_option( 'can_compress_scripts', 0, true ); 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, 'on');234 update_option( 'can_compress_scripts', 0, true ); 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, 'on');242 update_option( 'can_compress_scripts', 1, true ); 243 243 } 244 244 } -
trunk/src/wp-includes/option.php
r58380 r58416 1515 1515 1516 1516 if ( false === get_option( $transient_option ) ) { 1517 $autoload = 'on';1517 $autoload = true; 1518 1518 if ( $expiration ) { 1519 $autoload = 'off';1520 add_option( $transient_timeout, time() + $expiration, '', 'off');1519 $autoload = false; 1520 add_option( $transient_timeout, time() + $expiration, '', false ); 1521 1521 } 1522 1522 $result = add_option( $transient_option, $value, '', $autoload ); … … 1531 1531 if ( false === get_option( $transient_timeout ) ) { 1532 1532 delete_option( $transient_option ); 1533 add_option( $transient_timeout, time() + $expiration, '', 'off');1534 $result = add_option( $transient_option, $value, '', 'off');1533 add_option( $transient_timeout, time() + $expiration, '', false ); 1534 $result = add_option( $transient_option, $value, '', false ); 1535 1535 $update = false; 1536 1536 } else { … … 2120 2120 2121 2121 if ( ! is_multisite() ) { 2122 $result = add_option( $option, $value, '', 'off');2122 $result = add_option( $option, $value, '', false ); 2123 2123 } else { 2124 2124 $cache_key = "$network_id:$option"; … … 2366 2366 2367 2367 if ( ! is_multisite() ) { 2368 $result = update_option( $option, $value, 'off');2368 $result = update_option( $option, $value, false ); 2369 2369 } else { 2370 2370 $value = sanitize_option( $option, $value );
Note: See TracChangeset
for help on using the changeset viewer.