diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 91afbecf96..a884303893 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -8807,6 +8807,23 @@ function clean_dirsize_cache( $path ) { set_transient( 'dirsize_cache', $directory_cache, $expiration ); } +/** + * Returns the current WordPress version. + * + * Returns an unmodified value of `$wp_version`. Some plugins modify the global + * in an attempt to improve security through obscurity. This practice can cause + * errors in WordPress, so the ability to get an unmodified version is needed. + * + * @since 6.7.0 + * + * @return string The current WordPress version. + */ +function wp_get_wp_version() { + require ABSPATH . WPINC . '/version.php'; + + return $wp_version; +} + /** * Checks compatibility with the current WordPress version. * @@ -9006,21 +9023,3 @@ function wp_admin_notice( $message, $args = array() ) { echo wp_kses_post( wp_get_admin_notice( $message, $args ) ); } - -/** - * Returns the current WordPress Version. - * - * Returns an unmodified version of `$wp_version`. Some plugins modify the - * global in an attempt to improve security through obscurity. This - * practice can cause errors in WordPress so the ability to get an - * unmodified version is needed. - * - * @since 6.7.0 - * - * @return string The current WordPress Version. - */ -function wp_get_wp_version() { - require ABSPATH . WPINC . '/version.php'; - - return $wp_version; -} diff --git a/wp-includes/version.php b/wp-includes/version.php index ab12191283..0516a247ac 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.7-alpha-58825'; +$wp_version = '6.7-alpha-58826'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.