Docs: Add missing description for `$comment` global.

Props immeet94, mukesh27.
Fixes #46928. See #47110.
Built from https://develop.svn.wordpress.org/trunk@46391


git-svn-id: http://core.svn.wordpress.org/trunk@46190 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2019-10-04 22:19:57 +00:00
parent f34db2aa7e
commit d2a48496d2
8 changed files with 9 additions and 9 deletions

View File

@ -539,7 +539,7 @@ class WP_Comments_List_Table extends WP_List_Table {
/**
* @global WP_Post $post Global post object.
* @global WP_Comment $comment
* @global WP_Comment $comment Global comment object.
*
* @param WP_Comment $item
*/

View File

@ -623,7 +623,7 @@ function wp_dashboard_recent_drafts( $drafts = false ) {
* @access private
* @since 2.7.0
*
* @global WP_Comment $comment
* @global WP_Comment $comment Global comment object.
*
* @param WP_Comment $comment The current comment.
* @param bool $show_date Optional. Whether to display the date.

View File

@ -161,7 +161,7 @@ class Walker_Comment extends Walker {
* @see Walker::start_el()
* @see wp_list_comments()
* @global int $comment_depth
* @global WP_Comment $comment
* @global WP_Comment $comment Global comment object.
*
* @param string $output Used to append additional content. Passed by reference.
* @param WP_Comment $comment Comment data object.

View File

@ -3351,7 +3351,7 @@ class WP_Query {
* Sets up the current comment.
*
* @since 2.2.0
* @global WP_Comment $comment Current comment.
* @global WP_Comment $comment Global comment object.
*/
public function the_comment() {
global $comment;

View File

@ -1307,7 +1307,7 @@ function wp_comment_form_unfiltered_html_nonce() {
* @global WP_Post $post Global post object.
* @global wpdb $wpdb WordPress database abstraction object.
* @global int $id
* @global WP_Comment $comment
* @global WP_Comment $comment Global comment object.
* @global string $user_login
* @global int $user_ID
* @global string $user_identity
@ -1922,7 +1922,7 @@ function comment_id_fields( $id = 0 ) {
*
* @since 2.7.0
*
* @global WP_Comment $comment Current comment.
* @global WP_Comment $comment Global comment object.
*
* @param string $noreplytext Optional. Text to display when not replying to a comment.
* Default false.

View File

@ -184,7 +184,7 @@ function get_approved_comments( $post_id, $args = array() ) {
*
* @since 2.0.0
*
* @global WP_Comment $comment
* @global WP_Comment $comment Global comment object.
*
* @param WP_Comment|string|int $comment Comment to retrieve.
* @param string $output Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which correspond to

View File

@ -692,7 +692,7 @@ function locate_template( $template_names, $load = false, $require_once = true )
* @global string $wp_version
* @global WP $wp Current WordPress environment instance.
* @global int $id
* @global WP_Comment $comment
* @global WP_Comment $comment Global comment object.
* @global int $user_ID
*
* @param string $_template_file Path to template file.

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.3-beta2-46390';
$wp_version = '5.3-beta2-46391';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.