Skip to content

Commit 84c04cd

Browse files
Twenty Twenty-One: Add missing documentation for some global variables.
Props sabernhardt, upadalavipul, shailu25, rajinsharwar, audrasjb, viralsampat, noruzzaman, huzaifaalmesbah, SergeyBiryukov. Fixes #58715. git-svn-id: https://develop.svn.wordpress.org/trunk@62483 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 2001ef1 commit 84c04cd

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

src/wp-content/themes/twentytwentyone/functions.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@
99
* @since Twenty Twenty-One 1.0
1010
*/
1111

12-
// This theme requires WordPress 5.3 or later.
12+
/**
13+
* This theme requires WordPress 5.3 or later.
14+
*
15+
* @global string $wp_version The WordPress version string.
16+
*/
1317
if ( version_compare( $GLOBALS['wp_version'], '5.3', '<' ) ) {
1418
require get_template_directory() . '/inc/back-compat.php';
1519
}

src/wp-content/themes/twentytwentyone/inc/back-compat.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function twenty_twenty_one_switch_theme() {
3131
*
3232
* @since Twenty Twenty-One 1.0
3333
*
34-
* @global string $wp_version WordPress version.
34+
* @global string $wp_version The WordPress version string.
3535
*
3636
* @return void
3737
*/
@@ -50,7 +50,7 @@ function twenty_twenty_one_upgrade_notice() {
5050
*
5151
* @since Twenty Twenty-One 1.0
5252
*
53-
* @global string $wp_version WordPress version.
53+
* @global string $wp_version The WordPress version string.
5454
*
5555
* @return void
5656
*/
@@ -74,7 +74,7 @@ function twenty_twenty_one_customize() {
7474
*
7575
* @since Twenty Twenty-One 1.0
7676
*
77-
* @global string $wp_version WordPress version.
77+
* @global string $wp_version The WordPress version string.
7878
*
7979
* @return void
8080
*/

0 commit comments

Comments
 (0)