Make WordPress Core

Changeset 62451


Ignore:
Timestamp:
06/02/2026 05:54:14 PM (7 weeks ago)
Author:
SergeyBiryukov
Message:

Twenty Twelve: 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
Files:
3 edited

Legend:

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

    r62442 r62451  
    1111
    1212/**
    13  * @global int $page  WordPress paginated post page count.
    14  * @global int $paged WordPress archive pagination page count.
     13 * @global int $page  Page number of a single post.
     14 * @global int $paged Page number of a list of posts.
    1515 */
    1616global $page, $paged;
  • trunk/src/wp-content/themes/twentyten/header.php

    r62438 r62451  
    1111
    1212/**
    13  * @global int $page  WordPress paginated post page count.
    14  * @global int $paged WordPress archive pagination page count.
     13 * @global int $page  Page number of a single post.
     14 * @global int $paged Page number of a list of posts.
    1515 */
    1616global $page, $paged;
  • trunk/src/wp-content/themes/twentytwelve/functions.php

    r62344 r62451  
    4444 *
    4545 * @since Twenty Twelve 1.0
     46 *
     47 * @global string $wp_version The WordPress version string.
    4648 */
    4749function twentytwelve_setup() {
     
    182184 *
    183185 * @since Twenty Twelve 1.0
     186 *
     187 * @global WP_Styles $wp_styles The WP_Styles object for printing styles.
    184188 */
    185189function twentytwelve_scripts_styles() {
     
    243247 * @deprecated Twenty Twelve 3.9 Disabled filter because, by default, fonts are self-hosted.
    244248 *
     249 * @global string $wp_version The WordPress version string.
     250 *
    245251 * @param array   $urls          URLs to print for resource hints.
    246252 * @param string  $relation_type The relation type the URLs are printed.
     
    299305 *
    300306 * @since Twenty Twelve 1.0
     307 *
     308 * @global int $paged Page number of a list of posts.
     309 * @global int $page  Page number of a single post.
    301310 *
    302311 * @param string $title Default title text for current view.
     
    412421         *
    413422         * @since Twenty Twelve 1.0
     423         *
     424         * @global WP_Query $wp_query WordPress Query object.
    414425         */
    415426        function twentytwelve_content_nav( $html_id ) {
     
    452463         * @since Twenty Twelve 1.0
    453464         *
    454          * @global WP_Post $post Global post object.
     465         * @global WP_Comment $comment Global comment object.
     466         * @global WP_Post    $post    Global post object.
     467         *
     468         * @param WP_Comment $comment The comment object.
     469         * @param array      $args    An array of comment arguments. @see get_comment_reply_link()
     470         * @param int        $depth   The depth of the comment.
    455471         */
    456472        function twentytwelve_comment( $comment, $args, $depth ) {
     
    645661 *
    646662 * @since Twenty Twelve 1.0
     663 *
     664 * @global int $content_width Content width.
    647665 */
    648666function twentytwelve_content_width() {
Note: See TracChangeset for help on using the changeset viewer.