Twenty Twenty-One: Add missing documentation for some global variables.

Props sabernhardt, upadalavipul, shailu25, rajinsharwar, audrasjb, viralsampat, noruzzaman, huzaifaalmesbah, SergeyBiryukov.
Fixes #58715.
Built from https://develop.svn.wordpress.org/trunk@62483


git-svn-id: http://core.svn.wordpress.org/trunk@61764 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov
2026-06-10 22:35:44 +00:00
parent 6909e6384a
commit 60338d9b8e
3 changed files with 9 additions and 5 deletions
@@ -9,7 +9,11 @@
* @since Twenty Twenty-One 1.0
*/
// This theme requires WordPress 5.3 or later.
/**
* This theme requires WordPress 5.3 or later.
*
* @global string $wp_version The WordPress version string.
*/
if ( version_compare( $GLOBALS['wp_version'], '5.3', '<' ) ) {
require get_template_directory() . '/inc/back-compat.php';
}
@@ -31,7 +31,7 @@ add_action( 'after_switch_theme', 'twenty_twenty_one_switch_theme' );
*
* @since Twenty Twenty-One 1.0
*
* @global string $wp_version WordPress version.
* @global string $wp_version The WordPress version string.
*
* @return void
*/
@@ -50,7 +50,7 @@ function twenty_twenty_one_upgrade_notice() {
*
* @since Twenty Twenty-One 1.0
*
* @global string $wp_version WordPress version.
* @global string $wp_version The WordPress version string.
*
* @return void
*/
@@ -74,7 +74,7 @@ add_action( 'load-customize.php', 'twenty_twenty_one_customize' );
*
* @since Twenty Twenty-One 1.0
*
* @global string $wp_version WordPress version.
* @global string $wp_version The WordPress version string.
*
* @return void
*/
+1 -1
View File
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '7.1-alpha-62482';
$wp_version = '7.1-alpha-62483';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.