Changeset 57016
- Timestamp:
- 10/27/2023 12:00:15 AM (12 months ago)
- Location:
- branches/6.4
- Files:
-
- 2 deleted
- 2 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/6.4
-
branches/6.4/src/wp-includes/option.php
r57004 r57016 249 249 250 250 /** 251 * Loads specific options into the cache with a single database query.251 * Primes specific options into the cache with a single database query. 252 252 * 253 253 * Only options that do not already exist in cache will be loaded. … … 259 259 * @param array $options An array of option names to be loaded. 260 260 */ 261 function wp_ load_options( $options ) {261 function wp_prime_option_caches( $options ) { 262 262 $alloptions = wp_load_alloptions(); 263 263 $cached_options = wp_cache_get_multiple( $options, 'options' ); … … 322 322 323 323 /** 324 * Loadsall options registered with a specific option group.324 * Primes the cache of all options registered with a specific option group. 325 325 * 326 326 * @since 6.4.0 … … 330 330 * @param string $option_group The option group to load options for. 331 331 */ 332 function wp_ load_options_by_group( $option_group ) {332 function wp_prime_option_caches_by_group( $option_group ) { 333 333 global $new_allowed_options; 334 334 335 335 if ( isset( $new_allowed_options[ $option_group ] ) ) { 336 wp_ load_options( $new_allowed_options[ $option_group ] );336 wp_prime_option_caches( $new_allowed_options[ $option_group ] ); 337 337 } 338 338 } … … 349 349 */ 350 350 function get_options( $options ) { 351 wp_ load_options( $options );351 wp_prime_option_caches( $options ); 352 352 353 353 $result = array();
Note: See TracChangeset
for help on using the changeset viewer.