Skip to content

Commit 095fab5

Browse files
Twenty Twenty: Add missing documentation for some global variables.
Props sabernhardt, upadalavipul, shailu25, rajinsharwar, audrasjb, viralsampat, noruzzaman, huzaifaalmesbah, SergeyBiryukov. See #58715. git-svn-id: https://develop.svn.wordpress.org/trunk@62479 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 46329b6 commit 095fab5

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@
3232
* as indicating support for post thumbnails.
3333
*
3434
* @since Twenty Twenty 1.0
35+
*
36+
* @global int $content_width Content width.
37+
* @global string $wp_version The WordPress version string.
3538
*/
3639
function twentytwenty_theme_support() {
3740

@@ -461,6 +464,9 @@ function twentytwenty_block_editor_styles() {
461464
}
462465
}
463466

467+
/**
468+
* @global string $wp_version The WordPress version string.
469+
*/
464470
if ( is_admin() && version_compare( $GLOBALS['wp_version'], '6.3', '>=' ) ) {
465471
add_action( 'enqueue_block_assets', 'twentytwenty_block_editor_styles', 1, 1 );
466472
} else {

0 commit comments

Comments
 (0)