Make WordPress Core


Ignore:
Timestamp:
05/31/2026 11:13:47 PM (2 months ago)
Author:
SergeyBiryukov
Message:

Twenty Ten: 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/twentyten/header.php

    r62344 r62438  
    99 * @since Twenty Ten 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(); ?>>
     
    1522<title>
    1623<?php
    17         /*
    18          * Print the <title> tag based on what is being viewed.
    19          */
    20         global $page, $paged;
    21 
     24        // Print the <title> tag based on what is being viewed.
    2225        wp_title( '|', true, 'right' );
    2326
Note: See TracChangeset for help on using the changeset viewer.