Skip to content

Commit 96f486c

Browse files
Twenty Fifteen: 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@62468 git-svn-id: http://core.svn.wordpress.org/trunk@61749 1a063a9b-81f0-0310-95a4-ce76da25c4cd
1 parent 2678c4d commit 96f486c

3 files changed

Lines changed: 13 additions & 1 deletion

File tree

wp-content/themes/twentyfifteen/functions.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636

3737
/**
3838
* Twenty Fifteen only works in WordPress 4.1 or later.
39+
*
40+
* @global string $wp_version The WordPress version string.
3941
*/
4042
if ( version_compare( $GLOBALS['wp_version'], '4.1-alpha', '<' ) ) {
4143
require get_template_directory() . '/inc/back-compat.php';
@@ -50,6 +52,8 @@
5052
* as indicating support for post thumbnails.
5153
*
5254
* @since Twenty Fifteen 1.0
55+
*
56+
* @global string $wp_version The WordPress version string.
5357
*/
5458
function twentyfifteen_setup() {
5559

@@ -499,6 +503,8 @@ function twentyfifteen_block_editor_styles() {
499503
* @since Twenty Fifteen 1.7
500504
* @deprecated Twenty Fifteen 3.4 Disabled filter because, by default, fonts are self-hosted.
501505
*
506+
* @global string $wp_version The WordPress version string.
507+
*
502508
* @param array $urls URLs to print for resource hints.
503509
* @param string $relation_type The relation type the URLs are printed.
504510
* @return array URLs to print for resource hints.

wp-content/themes/twentyfifteen/inc/back-compat.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ function twentyfifteen_switch_theme() {
3232
* Twenty Fifteen on WordPress versions prior to 4.1.
3333
*
3434
* @since Twenty Fifteen 1.0
35+
*
36+
* @global string $wp_version The WordPress version string.
3537
*/
3638
function twentyfifteen_upgrade_notice() {
3739
printf(
@@ -48,6 +50,8 @@ function twentyfifteen_upgrade_notice() {
4850
* Prevents the Customizer from being loaded on WordPress versions prior to 4.1.
4951
*
5052
* @since Twenty Fifteen 1.0
53+
*
54+
* @global string $wp_version The WordPress version string.
5155
*/
5256
function twentyfifteen_customize() {
5357
wp_die(
@@ -68,6 +72,8 @@ function twentyfifteen_customize() {
6872
* Prevents the Theme Preview from being loaded on WordPress versions prior to 4.1.
6973
*
7074
* @since Twenty Fifteen 1.0
75+
*
76+
* @global string $wp_version The WordPress version string.
7177
*/
7278
function twentyfifteen_preview() {
7379
if ( isset( $_GET['preview'] ) ) {

wp-includes/version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* @global string $wp_version
1818
*/
19-
$wp_version = '7.1-alpha-62467';
19+
$wp_version = '7.1-alpha-62468';
2020

2121
/**
2222
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

0 commit comments

Comments
 (0)