diff --git a/wp-includes/functions.php b/wp-includes/functions.php index a884303893..136012dd07 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -8819,7 +8819,11 @@ function clean_dirsize_cache( $path ) { * @return string The current WordPress version. */ function wp_get_wp_version() { - require ABSPATH . WPINC . '/version.php'; + static $wp_version; + + if ( ! isset( $wp_version ) ) { + require ABSPATH . WPINC . '/version.php'; + } return $wp_version; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 0516a247ac..252cbbf981 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.7-alpha-58826'; +$wp_version = '6.7-alpha-58827'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.