diff --git a/wp-includes/option.php b/wp-includes/option.php index 73b38c6514..36bfcf6755 100644 --- a/wp-includes/option.php +++ b/wp-includes/option.php @@ -256,9 +256,11 @@ function get_option( $option, $default_value = false ) { * * @global wpdb $wpdb WordPress database abstraction object. * - * @param array $options An array of option names to be loaded. + * @param string[] $options An array of option names to be loaded. */ function wp_prime_option_caches( $options ) { + global $wpdb; + $alloptions = wp_load_alloptions(); $cached_options = wp_cache_get_multiple( $options, 'options' ); $notoptions = wp_cache_get( 'notoptions', 'options' ); @@ -283,7 +285,6 @@ function wp_prime_option_caches( $options ) { return; } - global $wpdb; $results = $wpdb->get_results( $wpdb->prepare( sprintf( @@ -351,7 +352,7 @@ function wp_prime_option_caches_by_group( $option_group ) { * * @since 6.4.0 * - * @param array $options An array of option names to retrieve. + * @param string[] $options An array of option names to retrieve. * @return array An array of key-value pairs for the requested options. */ function get_options( $options ) { @@ -498,7 +499,7 @@ function wp_set_option_autoload_values( array $options ) { * * @see wp_set_option_autoload_values() * - * @param array $options List of option names. Expected to not be SQL-escaped. + * @param string[] $options List of option names. Expected to not be SQL-escaped. * @param string|bool $autoload Autoload value to control whether to load the options when WordPress starts up. * Accepts 'yes'|true to enable or 'no'|false to disable. * @return array Associative array of all provided $options as keys and boolean values for whether their autoload value diff --git a/wp-includes/version.php b/wp-includes/version.php index 3deed0556e..589b5bba5b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.5-alpha-57109'; +$wp_version = '6.5-alpha-57110'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.