diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-url-details-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-url-details-controller.php index 27d8a9c6bf..3a0e3c797c 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-url-details-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-url-details-controller.php @@ -451,7 +451,7 @@ class WP_REST_URL_Details_Controller extends WP_REST_Controller { * @return mixed The value from the cache. */ private function get_cache( $key ) { - return get_transient( $key ); + return get_site_transient( $key ); } /** @@ -478,7 +478,7 @@ class WP_REST_URL_Details_Controller extends WP_REST_Controller { */ $cache_expiration = apply_filters( 'rest_url_details_cache_expiration', $ttl ); - return set_transient( $key, $data, $cache_expiration ); + return set_site_transient( $key, $data, $cache_expiration ); } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 483e09c9d8..a95b9b8511 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '5.9-beta1-52310'; +$wp_version = '5.9-beta1-52311'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.