Changeset 52707 for trunk/src/wp-includes/option.php
- Timestamp:
- 02/11/2022 06:50:08 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/option.php
r52694 r52707 345 345 $options = $wpdb->get_results( $wpdb->prepare( "SELECT meta_key, meta_value FROM $wpdb->sitemeta WHERE meta_key IN ($core_options_in) AND site_id = %d", $network_id ) ); 346 346 347 $data = array(); 347 348 foreach ( $options as $option ) { 348 349 $key = $option->meta_key; … … 350 351 $option->meta_value = maybe_unserialize( $option->meta_value ); 351 352 352 wp_cache_set( $cache_key, $option->meta_value, 'site-options' ); 353 } 353 $data[ $cache_key ] = $option->meta_value; 354 } 355 wp_cache_set_multiple( $data, 'site-options' ); 354 356 } 355 357
Note: See TracChangeset
for help on using the changeset viewer.