Make WordPress Core

Changeset 55003


Ignore:
Timestamp:
12/18/2022 08:45:36 AM (4 years ago)
Author:
audrasjb
Message:

Docs: Improve various globals documentation, as per docblock standards.

Props upadalavipul, audrasjb.

See #57069, #56792.

Location:
trunk/src/wp-content/themes
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyseventeen/inc/template-tags.php

    r53308 r55003  
    126126 * Display a front page section.
    127127 *
     128 * @global WP_Post $post Global post object.
     129 *
    128130 * @param WP_Customize_Partial $partial Partial associated with a selective refresh request.
    129131 * @param int                  $id Front page section to display.
  • trunk/src/wp-content/themes/twentythirteen/functions.php

    r54492 r55003  
    489489         * Display navigation to next/previous post when applicable.
    490490         *
     491         * @global WP_Post $post Global post object.
     492         *
    491493         * @since Twenty Thirteen 1.0
    492494         */
  • trunk/src/wp-content/themes/twentytwelve/functions.php

    r54492 r55003  
    427427         *
    428428         * Used as a callback by wp_list_comments() for displaying the comments.
     429         *
     430         * @global WP_Post $post Global post object.
    429431         *
    430432         * @since Twenty Twelve 1.0
  • trunk/src/wp-content/themes/twentytwenty/inc/template-tags.php

    r53236 r55003  
    241241 *
    242242 * @since Twenty Twenty 1.0
     243 *
     244 * @global WP_Post $post Global post object.
    243245 *
    244246 * @param int    $post_id  The ID of the post.
    … …  
    652654 * @since Twenty Twenty 1.0
    653655 *
     656 * @global WP_Post $post Global post object.
     657 *
    654658 * @param array $classes Classes added to the body tag.
    655659 * @return array Classes added to the body tag.
Note: See TracChangeset for help on using the changeset viewer.