From 60338d9b8e2d62a1c79ca17cac1e38ba04ea4c71 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 10 Jun 2026 22:35:44 +0000 Subject: [PATCH] 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 --- wp-content/themes/twentytwentyone/functions.php | 6 +++++- wp-content/themes/twentytwentyone/inc/back-compat.php | 6 +++--- wp-includes/version.php | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/wp-content/themes/twentytwentyone/functions.php b/wp-content/themes/twentytwentyone/functions.php index 01a97e597e..a020e62bf0 100644 --- a/wp-content/themes/twentytwentyone/functions.php +++ b/wp-content/themes/twentytwentyone/functions.php @@ -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'; } diff --git a/wp-content/themes/twentytwentyone/inc/back-compat.php b/wp-content/themes/twentytwentyone/inc/back-compat.php index d5214803ca..22edddbb25 100644 --- a/wp-content/themes/twentytwentyone/inc/back-compat.php +++ b/wp-content/themes/twentytwentyone/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 */ diff --git a/wp-includes/version.php b/wp-includes/version.php index b340f64a10..985930f203 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.