Changeset 57013 for trunk/src/wp-includes/option.php
- Timestamp:
- 10/26/2023 10:54:15 PM (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/option.php
r56990 r57013 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.