diff --git a/wp-includes/option.php b/wp-includes/option.php index 66b22e9fc4..344dfee088 100644 --- a/wp-includes/option.php +++ b/wp-includes/option.php @@ -1330,7 +1330,8 @@ function get_transient( $transient ) { if ( ! isset( $alloptions[ $transient_option ] ) ) { $transient_timeout = '_transient_timeout_' . $transient; - $timeout = get_option( $transient_timeout ); + wp_prime_option_caches( array( $transient_option, $transient_timeout ) ); + $timeout = get_option( $transient_timeout ); if ( false !== $timeout && $timeout < time() ) { delete_option( $transient_option ); delete_option( $transient_timeout ); @@ -1410,6 +1411,7 @@ function set_transient( $transient, $value, $expiration = 0 ) { } else { $transient_timeout = '_transient_timeout_' . $transient; $transient_option = '_transient_' . $transient; + wp_prime_option_caches( array( $transient_option, $transient_timeout ) ); if ( false === get_option( $transient_option ) ) { $autoload = 'on'; diff --git a/wp-includes/version.php b/wp-includes/version.php index 104cd45ed3..8b59ad54ae 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.6-alpha-58133'; +$wp_version = '6.6-alpha-58134'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.