Twenty Nineteen: 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@62473


git-svn-id: http://core.svn.wordpress.org/trunk@61754 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov
2026-06-08 21:13:32 +00:00
parent bfcf1bc85b
commit bd27c52787
3 changed files with 6 additions and 4 deletions
@@ -11,6 +11,8 @@
/**
* Twenty Nineteen only works in WordPress 4.7 or later.
*
* @global string $wp_version The WordPress version string.
*/
if ( version_compare( $GLOBALS['wp_version'], '4.7', '<' ) ) {
require get_template_directory() . '/inc/back-compat.php';
@@ -33,7 +33,7 @@ add_action( 'after_switch_theme', 'twentynineteen_switch_theme' );
*
* @since Twenty Nineteen 1.0.0
*
* @global string $wp_version WordPress version.
* @global string $wp_version The WordPress version string.
*/
function twentynineteen_upgrade_notice() {
printf(
@@ -51,7 +51,7 @@ function twentynineteen_upgrade_notice() {
*
* @since Twenty Nineteen 1.0.0
*
* @global string $wp_version WordPress version.
* @global string $wp_version The WordPress version string.
*/
function twentynineteen_customize() {
wp_die(
@@ -73,7 +73,7 @@ add_action( 'load-customize.php', 'twentynineteen_customize' );
*
* @since Twenty Nineteen 1.0.0
*
* @global string $wp_version WordPress version.
* @global string $wp_version The WordPress version string.
*/
function twentynineteen_preview() {
if ( isset( $_GET['preview'] ) ) {
+1 -1
View File
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '7.1-alpha-62472';
$wp_version = '7.1-alpha-62473';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.