Twenty Sixteen: 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@62471


git-svn-id: http://core.svn.wordpress.org/trunk@61752 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov
2026-06-06 23:03:29 +00:00
parent b96ad6efc3
commit 9f48ec3eb7
3 changed files with 10 additions and 6 deletions
@@ -27,6 +27,8 @@
/**
* Twenty Sixteen only works in WordPress 4.4 or later.
*
* @global string $wp_version The WordPress version string.
*/
if ( version_compare( $GLOBALS['wp_version'], '4.4-alpha', '<' ) ) {
require get_template_directory() . '/inc/back-compat.php';
@@ -43,6 +45,8 @@ if ( ! function_exists( 'twentysixteen_setup' ) ) :
* Create your own twentysixteen_setup() function to override in a child theme.
*
* @since Twenty Sixteen 1.0
*
* @global string $wp_version The WordPress version string.
*/
function twentysixteen_setup() {
/*
@@ -241,9 +245,9 @@ add_action( 'after_setup_theme', 'twentysixteen_setup' );
*
* Priority 0 to make it available to lower priority callbacks.
*
* @global int $content_width
*
* @since Twenty Sixteen 1.0
*
* @global int $content_width Content width.
*/
function twentysixteen_content_width() {
/**
@@ -35,7 +35,7 @@ add_action( 'after_switch_theme', 'twentysixteen_switch_theme' );
*
* @since Twenty Sixteen 1.0
*
* @global string $wp_version WordPress version.
* @global string $wp_version The WordPress version string.
*/
function twentysixteen_upgrade_notice() {
printf(
@@ -53,7 +53,7 @@ function twentysixteen_upgrade_notice() {
*
* @since Twenty Sixteen 1.0
*
* @global string $wp_version WordPress version.
* @global string $wp_version The WordPress version string.
*/
function twentysixteen_customize() {
wp_die(
@@ -75,7 +75,7 @@ add_action( 'load-customize.php', 'twentysixteen_customize' );
*
* @since Twenty Sixteen 1.0
*
* @global string $wp_version WordPress version.
* @global string $wp_version The WordPress version string.
*/
function twentysixteen_preview() {
if ( isset( $_GET['preview'] ) ) {
+1 -1
View File
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '7.1-alpha-62470';
$wp_version = '7.1-alpha-62471';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.