Skip to content

Commit c51fdf2

Browse files
Twenty Fifteen: 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@62468 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 12cdc2c commit c51fdf2

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

src/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.

src/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'] ) ) {

0 commit comments

Comments
 (0)