Make WordPress Core


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.

File:
1 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() {
Note: See TracChangeset for help on using the changeset viewer.