Make WordPress Core

Changeset 62472


Ignore:
Timestamp:
06/07/2026 10:12:54 PM (2 months ago)
Author:
SergeyBiryukov
Message:

Twenty Seventeen: Add missing documentation for some global variables.

Props sabernhardt, upadalavipul, shailu25, rajinsharwar, audrasjb, viralsampat, noruzzaman, huzaifaalmesbah, SergeyBiryukov.
See #58715.

Location:
trunk/src/wp-content/themes/twentyseventeen
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyseventeen/functions.php

    r62344 r62472  
    1212/**
    1313 * Twenty Seventeen only works in WordPress 4.7 or later.
     14 *
     15 * @global string $wp_version The WordPress version string.
    1416 */
    1517if ( version_compare( $GLOBALS['wp_version'], '4.7-alpha', '<' ) ) {
     
    2426 * runs before the init hook. The init hook is too late for some features, such
    2527 * as indicating support for post thumbnails.
     28 *
     29 * @since Twenty Seventeen 1.0
     30 *
     31 * @global int $content_width Content width.
    2632 */
    2733function twentyseventeen_setup() {
     
    249255 * Priority 0 to make it available to lower priority callbacks.
    250256 *
    251  * @global int $content_width
     257 * @global int $content_width Content width.
    252258 */
    253259function twentyseventeen_content_width() {
  • trunk/src/wp-content/themes/twentyseventeen/inc/back-compat.php

    r60533 r62472  
    3434 * @since Twenty Seventeen 1.0
    3535 *
    36  * @global string $wp_version WordPress version.
     36 * @global string $wp_version The WordPress version string.
    3737 */
    3838function twentyseventeen_upgrade_notice() {
     
    5252 * @since Twenty Seventeen 1.0
    5353 *
    54  * @global string $wp_version WordPress version.
     54 * @global string $wp_version The WordPress version string.
    5555 */
    5656function twentyseventeen_customize() {
     
    7474 * @since Twenty Seventeen 1.0
    7575 *
    76  * @global string $wp_version WordPress version.
     76 * @global string $wp_version The WordPress version string.
    7777 */
    7878function twentyseventeen_preview() {
  • trunk/src/wp-content/themes/twentyseventeen/template-parts/page/content-front-page-panels.php

    r53308 r62472  
    99 */
    1010
     11/**
     12 * @global int|string $twentyseventeencounter Front page section counter.
     13 */
    1114global $twentyseventeencounter;
    1215
Note: See TracChangeset for help on using the changeset viewer.