Skip to content

Commit 8a9d768

Browse files
Twenty Sixteen: 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@62471 602fd350-edb4-49c9-b593-d223f7449a82
1 parent f36e443 commit 8a9d768

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727

2828
/**
2929
* Twenty Sixteen only works in WordPress 4.4 or later.
30+
*
31+
* @global string $wp_version The WordPress version string.
3032
*/
3133
if ( version_compare( $GLOBALS['wp_version'], '4.4-alpha', '<' ) ) {
3234
require get_template_directory() . '/inc/back-compat.php';
@@ -43,6 +45,8 @@
4345
* Create your own twentysixteen_setup() function to override in a child theme.
4446
*
4547
* @since Twenty Sixteen 1.0
48+
*
49+
* @global string $wp_version The WordPress version string.
4650
*/
4751
function twentysixteen_setup() {
4852
/*
@@ -241,9 +245,9 @@ function twentysixteen_setup() {
241245
*
242246
* Priority 0 to make it available to lower priority callbacks.
243247
*
244-
* @global int $content_width
245-
*
246248
* @since Twenty Sixteen 1.0
249+
*
250+
* @global int $content_width Content width.
247251
*/
248252
function twentysixteen_content_width() {
249253
/**

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function twentysixteen_switch_theme() {
3535
*
3636
* @since Twenty Sixteen 1.0
3737
*
38-
* @global string $wp_version WordPress version.
38+
* @global string $wp_version The WordPress version string.
3939
*/
4040
function twentysixteen_upgrade_notice() {
4141
printf(
@@ -53,7 +53,7 @@ function twentysixteen_upgrade_notice() {
5353
*
5454
* @since Twenty Sixteen 1.0
5555
*
56-
* @global string $wp_version WordPress version.
56+
* @global string $wp_version The WordPress version string.
5757
*/
5858
function twentysixteen_customize() {
5959
wp_die(
@@ -75,7 +75,7 @@ function twentysixteen_customize() {
7575
*
7676
* @since Twenty Sixteen 1.0
7777
*
78-
* @global string $wp_version WordPress version.
78+
* @global string $wp_version The WordPress version string.
7979
*/
8080
function twentysixteen_preview() {
8181
if ( isset( $_GET['preview'] ) ) {

0 commit comments

Comments
 (0)