Skip to content

Commit 6b8e761

Browse files
committed
Docs: Add missing @global annotations for wp_version and post in Twenty Eleven
1 parent 2424d65 commit 6b8e761

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ function twentyeleven_setup() {
8383
* Manual loading of text domain is not required after the introduction of
8484
* just in time translation loading in WordPress version 4.6.
8585
*
86+
* @global string $wp_version The WordPress version.
87+
*
8688
* @ticket 58318
8789
*/
8890
if ( version_compare( $GLOBALS['wp_version'], '4.6', '<' ) ) {

src/wp-content/themes/twentyeleven/header.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,11 @@
103103
?>
104104
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home" <?php echo $is_front ? 'aria-current="page"' : ''; ?>>
105105
<?php
106-
/*
106+
/**
107107
* The header image.
108-
* Check if this is a post or page, if it has a thumbnail, and if it's a big one
108+
* Check if this is a post or page, if it has a thumbnail, and if it's a big one.
109+
*
110+
* @global WP_Post $post Global post object.
109111
*/
110112
$image = false;
111113
if ( is_singular() && has_post_thumbnail( $post->ID ) ) {

0 commit comments

Comments
 (0)