diff --git a/wp-includes/option.php b/wp-includes/option.php index 4e3886630d..e587931173 100644 --- a/wp-includes/option.php +++ b/wp-includes/option.php @@ -248,7 +248,7 @@ function get_option( $option, $default_value = false ) { } /** - * Loads specific options into the cache with a single database query. + * Primes specific options into the cache with a single database query. * * Only options that do not already exist in cache will be loaded. * @@ -258,7 +258,7 @@ function get_option( $option, $default_value = false ) { * * @param array $options An array of option names to be loaded. */ -function wp_load_options( $options ) { +function wp_prime_option_caches( $options ) { $alloptions = wp_load_alloptions(); $cached_options = wp_cache_get_multiple( $options, 'options' ); @@ -321,7 +321,7 @@ function wp_load_options( $options ) { } /** - * Loads all options registered with a specific option group. + * Primes the cache of all options registered with a specific option group. * * @since 6.4.0 * @@ -329,11 +329,11 @@ function wp_load_options( $options ) { * * @param string $option_group The option group to load options for. */ -function wp_load_options_by_group( $option_group ) { +function wp_prime_option_caches_by_group( $option_group ) { global $new_allowed_options; if ( isset( $new_allowed_options[ $option_group ] ) ) { - wp_load_options( $new_allowed_options[ $option_group ] ); + wp_prime_option_caches( $new_allowed_options[ $option_group ] ); } } @@ -348,7 +348,7 @@ function wp_load_options_by_group( $option_group ) { * @return array An array of key-value pairs for the requested options. */ function get_options( $options ) { - wp_load_options( $options ); + wp_prime_option_caches( $options ); $result = array(); foreach ( $options as $option ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 1a585993a7..c9d81edb1f 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.5-alpha-57012'; +$wp_version = '6.5-alpha-57013'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.