Changeset 57053 for trunk/src/wp-includes/option.php
- Timestamp:
- 11/02/2023 12:02:36 AM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/option.php
r57029 r57053 476 476 } elseif ( $grouped_options['no'] ) { 477 477 $alloptions = wp_load_alloptions( true ); 478 478 479 foreach ( $grouped_options['no'] as $option ) { 479 480 if ( isset( $alloptions[ $option ] ) ) { … … 481 482 } 482 483 } 484 483 485 wp_cache_set( 'alloptions', $alloptions, 'options' ); 484 486 } … … 844 846 // Update the cached value based on where it is currently cached. 845 847 $alloptions = wp_load_alloptions( true ); 848 846 849 if ( isset( $alloptions[ $option ] ) ) { 847 850 $alloptions[ $option ] = $serialized_value; … … 855 858 856 859 $alloptions = wp_load_alloptions( true ); 860 857 861 $alloptions[ $option ] = $serialized_value; 858 862 wp_cache_set( 'alloptions', $alloptions, 'options' ); … … 860 864 // Delete the alloptions cache, then set the individual cache. 861 865 $alloptions = wp_load_alloptions( true ); 866 862 867 if ( isset( $alloptions[ $option ] ) ) { 863 868 unset( $alloptions[ $option ] ); … … 1090 1095 if ( 'yes' === $row->autoload ) { 1091 1096 $alloptions = wp_load_alloptions( true ); 1097 1092 1098 if ( is_array( $alloptions ) && isset( $alloptions[ $option ] ) ) { 1093 1099 unset( $alloptions[ $option ] ); … … 1217 1223 // If option is not in alloptions, it is not autoloaded and thus has a timeout. 1218 1224 $alloptions = wp_load_alloptions(); 1225 1219 1226 if ( ! isset( $alloptions[ $transient_option ] ) ) { 1220 1227 $transient_timeout = '_transient_timeout_' . $transient;
Note: See TracChangeset
for help on using the changeset viewer.