Files
wordpress/wp-includes/version.php
johnjamesjacoby 02dee695d8 Cache API: Introduce fallback for when the wp_cache_switch_to_blog() function is missing.
This commit protects against an edge-case where a persistent object-cache drop-in plugin not including its own `wp_cache_switch_to_blog()` function would cause non-persistent cache groups to go missing when switching between sites, and includes the following changes:

* A new `wp_cache_switch_to_blog_fallback()` function in `ms-blogs.php` which abstracts duplicated code from `switch_to_blog()` and `restore_current_blog()` for easier unit testing
* A new `wpCacheSwitchToBlogFallback.php` file with approximately 25 new unit tests
* Conditionally declares `wp_cache_switch_to_blog()` in `cache-compat.php` only if it does not already exist, either via core's `cache.php` or a drop-in plugin

With this change, WordPress no longer needs to check if the `wp_cache_switch_to_blog()` function exists (because it always will) so those checks have been removed.

Props ethitter, jeremyfelt, johnjamesjacoby, markjaquith, nacin, ozgursar, r1k0.

Fixes #23290.
Built from https://develop.svn.wordpress.org/trunk@61760


git-svn-id: http://core.svn.wordpress.org/trunk@61066 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-02-27 19:58:43 +00:00

58 lines
1.1 KiB
PHP

<?php
/**
* WordPress Version
*
* Contains version information for the current WordPress release.
*
* @package WordPress
* @since 1.2.0
*/
/**
* The WordPress version string.
*
* Holds the current version number for WordPress core. Used to bust caches
* and to enable development mode for scripts when running from the /src directory.
*
* @global string $wp_version
*/
$wp_version = '7.0-beta2-61760';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
*
* @global int $wp_db_version
*/
$wp_db_version = 61696;
/**
* Holds the TinyMCE version.
*
* @global string $tinymce_version
*/
$tinymce_version = '49110-20250317';
/**
* Holds the minimum required PHP version.
*
* @global string $required_php_version
*/
$required_php_version = '7.4';
/**
* Holds the names of required PHP extensions.
*
* @global string[] $required_php_extensions
*/
$required_php_extensions = array(
'json',
'hash',
);
/**
* Holds the minimum required MySQL version.
*
* @global string $required_mysql_version
*/
$required_mysql_version = '5.5.5';