Make WordPress Core

Changeset 62438


Ignore:
Timestamp:
05/31/2026 11:13:47 PM (9 hours 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.

Location:
trunk/src/wp-content/themes/twentyten
Files:
2 edited

Legend:

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

    r61411 r62438  
    7373     *
    7474     * @since Twenty Ten 1.0
     75     *
     76     * @global string $wp_version The WordPress version string.
    7577     */
    7678    function twentyten_setup() {
     
    437439    return preg_replace( "#<style type='text/css'>(.*?)</style>#s", '', $css );
    438440}
    439 // Backward compatibility with WordPress 3.0.
     441
     442/**
     443 * Backward compatibility with WordPress 3.0.
     444 *
     445 * @global string $wp_version The WordPress version string.
     446 */
    440447if ( version_compare( $GLOBALS['wp_version'], '3.1', '<' ) ) {
    441448    add_filter( 'gallery_style', 'twentyten_remove_gallery_css' );
     
    453460     * @since Twenty Ten 1.0
    454461     *
     462     * @global WP_Comment $comment Global comment object.
     463     *
    455464     * @param WP_Comment $comment The comment object.
    456      * @param array      $args    An array of arguments. @see get_comment_reply_link()
     465     * @param array      $args    An array of comment arguments. @see get_comment_reply_link()
    457466     * @param int        $depth   The depth of the comment.
    458467     */
  • 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.