Twenty Twenty: Add missing documentation for some global variables.

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


git-svn-id: http://core.svn.wordpress.org/trunk@61760 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov
2026-06-09 18:11:43 +00:00
parent 47a5d8d07c
commit c106ca66e2
2 changed files with 7 additions and 1 deletions
@@ -32,6 +32,9 @@
* as indicating support for post thumbnails.
*
* @since Twenty Twenty 1.0
*
* @global int $content_width Content width.
* @global string $wp_version The WordPress version string.
*/
function twentytwenty_theme_support() {
@@ -461,6 +464,9 @@ function twentytwenty_block_editor_styles() {
}
}
/**
* @global string $wp_version The WordPress version string.
*/
if ( is_admin() && version_compare( $GLOBALS['wp_version'], '6.3', '>=' ) ) {
add_action( 'enqueue_block_assets', 'twentytwenty_block_editor_styles', 1, 1 );
} else {
+1 -1
View File
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '7.1-alpha-62478';
$wp_version = '7.1-alpha-62479';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.