mirror of
https://github.com/WordPress/WordPress.git
synced 2026-06-19 07:37:07 +00:00
Twenty Seventeen: 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@62472 git-svn-id: http://core.svn.wordpress.org/trunk@61753 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -11,6 +11,8 @@
|
||||
|
||||
/**
|
||||
* Twenty Seventeen only works in WordPress 4.7 or later.
|
||||
*
|
||||
* @global string $wp_version The WordPress version string.
|
||||
*/
|
||||
if ( version_compare( $GLOBALS['wp_version'], '4.7-alpha', '<' ) ) {
|
||||
require get_template_directory() . '/inc/back-compat.php';
|
||||
@@ -23,6 +25,10 @@ if ( version_compare( $GLOBALS['wp_version'], '4.7-alpha', '<' ) ) {
|
||||
* Note that this function is hooked into the after_setup_theme hook, which
|
||||
* runs before the init hook. The init hook is too late for some features, such
|
||||
* as indicating support for post thumbnails.
|
||||
*
|
||||
* @since Twenty Seventeen 1.0
|
||||
*
|
||||
* @global int $content_width Content width.
|
||||
*/
|
||||
function twentyseventeen_setup() {
|
||||
|
||||
@@ -248,7 +254,7 @@ add_action( 'after_setup_theme', 'twentyseventeen_setup' );
|
||||
*
|
||||
* Priority 0 to make it available to lower priority callbacks.
|
||||
*
|
||||
* @global int $content_width
|
||||
* @global int $content_width Content width.
|
||||
*/
|
||||
function twentyseventeen_content_width() {
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ add_action( 'after_switch_theme', 'twentyseventeen_switch_theme' );
|
||||
*
|
||||
* @since Twenty Seventeen 1.0
|
||||
*
|
||||
* @global string $wp_version WordPress version.
|
||||
* @global string $wp_version The WordPress version string.
|
||||
*/
|
||||
function twentyseventeen_upgrade_notice() {
|
||||
printf(
|
||||
@@ -51,7 +51,7 @@ function twentyseventeen_upgrade_notice() {
|
||||
*
|
||||
* @since Twenty Seventeen 1.0
|
||||
*
|
||||
* @global string $wp_version WordPress version.
|
||||
* @global string $wp_version The WordPress version string.
|
||||
*/
|
||||
function twentyseventeen_customize() {
|
||||
wp_die(
|
||||
@@ -73,7 +73,7 @@ add_action( 'load-customize.php', 'twentyseventeen_customize' );
|
||||
*
|
||||
* @since Twenty Seventeen 1.0
|
||||
*
|
||||
* @global string $wp_version WordPress version.
|
||||
* @global string $wp_version The WordPress version string.
|
||||
*/
|
||||
function twentyseventeen_preview() {
|
||||
if ( isset( $_GET['preview'] ) ) {
|
||||
|
||||
@@ -8,6 +8,9 @@
|
||||
* @version 1.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* @global int|string $twentyseventeencounter Front page section counter.
|
||||
*/
|
||||
global $twentyseventeencounter;
|
||||
|
||||
?>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '7.1-alpha-62471';
|
||||
$wp_version = '7.1-alpha-62472';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
||||
Reference in New Issue
Block a user