From d2a48496d29979342b331f897062aec5e1b27d60 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 4 Oct 2019 22:19:57 +0000 Subject: [PATCH] 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 --- wp-admin/includes/class-wp-comments-list-table.php | 2 +- wp-admin/includes/dashboard.php | 2 +- wp-includes/class-walker-comment.php | 2 +- wp-includes/class-wp-query.php | 2 +- wp-includes/comment-template.php | 4 ++-- wp-includes/comment.php | 2 +- wp-includes/template.php | 2 +- wp-includes/version.php | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/wp-admin/includes/class-wp-comments-list-table.php b/wp-admin/includes/class-wp-comments-list-table.php index 73da78ccd8..1020aab127 100644 --- a/wp-admin/includes/class-wp-comments-list-table.php +++ b/wp-admin/includes/class-wp-comments-list-table.php @@ -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 */ diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php index 7598df80c8..eb9b86d468 100644 --- a/wp-admin/includes/dashboard.php +++ b/wp-admin/includes/dashboard.php @@ -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. diff --git a/wp-includes/class-walker-comment.php b/wp-includes/class-walker-comment.php index ecbee65b4f..7325fd0a6a 100644 --- a/wp-includes/class-walker-comment.php +++ b/wp-includes/class-walker-comment.php @@ -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. diff --git a/wp-includes/class-wp-query.php b/wp-includes/class-wp-query.php index bc7da5a62f..cee5310d7c 100644 --- a/wp-includes/class-wp-query.php +++ b/wp-includes/class-wp-query.php @@ -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; diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php index 294370c0fe..9f945a9e3e 100644 --- a/wp-includes/comment-template.php +++ b/wp-includes/comment-template.php @@ -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. diff --git a/wp-includes/comment.php b/wp-includes/comment.php index d0b3a57d6a..c006c45fe3 100644 --- a/wp-includes/comment.php +++ b/wp-includes/comment.php @@ -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 diff --git a/wp-includes/template.php b/wp-includes/template.php index 860cbda179..cd94f1ded3 100644 --- a/wp-includes/template.php +++ b/wp-includes/template.php @@ -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. diff --git a/wp-includes/version.php b/wp-includes/version.php index b54b86405d..4a887a63e2 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.