Make WordPress Core

Changeset 62483


Ignore:
Timestamp:
06/10/2026 10:34:53 PM (4 months ago)
Author:
SergeyBiryukov
Message:

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

Props sabernhardt, upadalavipul, shailu25, rajinsharwar, audrasjb, viralsampat, noruzzaman, huzaifaalmesbah, SergeyBiryukov.
Fixes #58715.

Location:
trunk/src/wp-content/themes/twentytwentyone
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwentyone/functions.php

    r61635 r62483  
    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 */
    1317if ( version_compare( $GLOBALS['wp_version'], '5.3', '<' ) ) {
    1418        require get_template_directory() . '/inc/back-compat.php';
  • trunk/src/wp-content/themes/twentytwentyone/inc/back-compat.php

    r61654 r62483  
    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
    … …  
    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
    … …  
    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
Note: See TracChangeset for help on using the changeset viewer.