Make WordPress Core

Changeset 46391


Ignore:
Timestamp:
10/04/2019 10:18:11 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Add missing description for $comment global.

Props immeet94, mukesh27.
Fixes #46928. See #47110.

Location:
trunk/src
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-comments-list-table.php

    r46341 r46391  
    540540    /**
    541541     * @global WP_Post    $post    Global post object.
    542      * @global WP_Comment $comment
     542     * @global WP_Comment $comment Global comment object.
    543543     *
    544544     * @param WP_Comment $item
  • trunk/src/wp-admin/includes/dashboard.php

    r46130 r46391  
    624624 * @since 2.7.0
    625625 *
    626  * @global WP_Comment $comment
     626 * @global WP_Comment $comment Global comment object.
    627627 *
    628628 * @param WP_Comment $comment   The current comment.
  • trunk/src/wp-includes/class-walker-comment.php

    r45932 r46391  
    162162     * @see wp_list_comments()
    163163     * @global int        $comment_depth
    164      * @global WP_Comment $comment
     164     * @global WP_Comment $comment       Global comment object.
    165165     *
    166166     * @param string     $output  Used to append additional content. Passed by reference.
  • trunk/src/wp-includes/class-wp-query.php

    r46201 r46391  
    33523352     *
    33533353     * @since 2.2.0
    3354      * @global WP_Comment $comment Current comment.
     3354     * @global WP_Comment $comment Global comment object.
    33553355     */
    33563356    public function the_comment() {
  • trunk/src/wp-includes/comment-template.php

    r46349 r46391  
    13081308 * @global wpdb       $wpdb             WordPress database abstraction object.
    13091309 * @global int        $id
    1310  * @global WP_Comment $comment
     1310 * @global WP_Comment $comment          Global comment object.
    13111311 * @global string     $user_login
    13121312 * @global int        $user_ID
     
    19231923 * @since 2.7.0
    19241924 *
    1925  * @global WP_Comment $comment Current comment.
     1925 * @global WP_Comment $comment Global comment object.
    19261926 *
    19271927 * @param string $noreplytext  Optional. Text to display when not replying to a comment.
  • trunk/src/wp-includes/comment.php

    r46292 r46391  
    185185 * @since 2.0.0
    186186 *
    187  * @global WP_Comment $comment
     187 * @global WP_Comment $comment Global comment object.
    188188 *
    189189 * @param WP_Comment|string|int $comment Comment to retrieve.
  • trunk/src/wp-includes/template.php

    r45742 r46391  
    693693 * @global WP         $wp            Current WordPress environment instance.
    694694 * @global int        $id
    695  * @global WP_Comment $comment
     695 * @global WP_Comment $comment       Global comment object.
    696696 * @global int        $user_ID
    697697 *
Note: See TracChangeset for help on using the changeset viewer.