Make WordPress Core

Changeset 62442


Ignore:
Timestamp:
06/01/2026 11:20:59 PM (3 weeks ago)
Author:
SergeyBiryukov
Message:

Twenty Eleven: 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/twentyeleven
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyeleven/content-featured.php

    r52929 r62442  
    88 */
    99
     10/**
     11 * @global string $feature_class CSS classes for the article element.
     12 */
    1013global $feature_class;
    1114?>
  • trunk/src/wp-content/themes/twentyeleven/functions.php

    r61440 r62442  
    7171     *
    7272     * @since Twenty Eleven 1.0
     73     *
     74     * @global string $wp_version The WordPress version string.
    7375     */
    7476    function twentyeleven_setup() {
     
    637639     * @since Twenty Eleven 1.0
    638640     *
     641     * @global WP_Query $wp_query WordPress Query object.
     642     *
    639643     * @param string $html_id The HTML id attribute.
    640644     */
     
    753757     *
    754758     * @since Twenty Eleven 1.0
     759     *
     760     * @global WP_Comment $comment Global comment object.
    755761     *
    756762     * @param WP_Comment $comment The comment object.
  • trunk/src/wp-content/themes/twentyeleven/header.php

    r62344 r62442  
    99 * @since Twenty Eleven 1.0
    1010 */
     11
     12/**
     13 * @global int $page  WordPress paginated post page count.
     14 * @global int $paged WordPress archive pagination page count.
     15 */
     16global $page, $paged;
     17
    1118?><!DOCTYPE html>
    1219<html <?php language_attributes(); ?>>
     
    1724<?php
    1825    // Print the <title> tag based on what is being viewed.
    19     global $page, $paged;
    20 
    2126    wp_title( '|', true, 'right' );
    2227
  • trunk/src/wp-content/themes/twentyeleven/showcase.php

    r56556 r62442  
    209209                        $recent->the_post();
    210210
     211                        /**
     212                         * @global int $more
     213                         */
     214                        global $more;
    211215                        // Set $more to 0 in order to only get the first part of the post.
    212                         global $more;
    213216                        $more = 0;
    214217
Note: See TracChangeset for help on using the changeset viewer.