Skip to content

Commit

Permalink
Docs: Add missing description for $comment global.
Browse files Browse the repository at this point in the history
Props immeet94, mukesh27.
Fixes #46928. See #47110.

git-svn-id: https://develop.svn.wordpress.org/trunk@46391 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Oct 4, 2019
1 parent 08ff597 commit c2bcdea
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/wp-admin/includes/class-wp-comments-list-table.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ public function display() {


/** /**
* @global WP_Post $post Global post object. * @global WP_Post $post Global post object.
* @global WP_Comment $comment * @global WP_Comment $comment Global comment object.
* *
* @param WP_Comment $item * @param WP_Comment $item
*/ */
Expand Down
2 changes: 1 addition & 1 deletion src/wp-admin/includes/dashboard.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ function wp_dashboard_recent_drafts( $drafts = false ) {
* @access private * @access private
* @since 2.7.0 * @since 2.7.0
* *
* @global WP_Comment $comment * @global WP_Comment $comment Global comment object.
* *
* @param WP_Comment $comment The current comment. * @param WP_Comment $comment The current comment.
* @param bool $show_date Optional. Whether to display the date. * @param bool $show_date Optional. Whether to display the date.
Expand Down
2 changes: 1 addition & 1 deletion src/wp-includes/class-walker-comment.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public function display_element( $element, &$children_elements, $max_depth, $dep
* @see Walker::start_el() * @see Walker::start_el()
* @see wp_list_comments() * @see wp_list_comments()
* @global int $comment_depth * @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 string $output Used to append additional content. Passed by reference.
* @param WP_Comment $comment Comment data object. * @param WP_Comment $comment Comment data object.
Expand Down
2 changes: 1 addition & 1 deletion src/wp-includes/class-wp-query.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -3351,7 +3351,7 @@ public function next_comment() {
* Sets up the current comment. * Sets up the current comment.
* *
* @since 2.2.0 * @since 2.2.0
* @global WP_Comment $comment Current comment. * @global WP_Comment $comment Global comment object.
*/ */
public function the_comment() { public function the_comment() {
global $comment; global $comment;
Expand Down
4 changes: 2 additions & 2 deletions src/wp-includes/comment-template.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -1307,7 +1307,7 @@ function wp_comment_form_unfiltered_html_nonce() {
* @global WP_Post $post Global post object. * @global WP_Post $post Global post object.
* @global wpdb $wpdb WordPress database abstraction object. * @global wpdb $wpdb WordPress database abstraction object.
* @global int $id * @global int $id
* @global WP_Comment $comment * @global WP_Comment $comment Global comment object.
* @global string $user_login * @global string $user_login
* @global int $user_ID * @global int $user_ID
* @global string $user_identity * @global string $user_identity
Expand Down Expand Up @@ -1922,7 +1922,7 @@ function comment_id_fields( $id = 0 ) {
* *
* @since 2.7.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. * @param string $noreplytext Optional. Text to display when not replying to a comment.
* Default false. * Default false.
Expand Down
2 changes: 1 addition & 1 deletion src/wp-includes/comment.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ function get_approved_comments( $post_id, $args = array() ) {
* *
* @since 2.0.0 * @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 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 * @param string $output Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which correspond to
Expand Down
2 changes: 1 addition & 1 deletion src/wp-includes/template.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ function locate_template( $template_names, $load = false, $require_once = true )
* @global string $wp_version * @global string $wp_version
* @global WP $wp Current WordPress environment instance. * @global WP $wp Current WordPress environment instance.
* @global int $id * @global int $id
* @global WP_Comment $comment * @global WP_Comment $comment Global comment object.
* @global int $user_ID * @global int $user_ID
* *
* @param string $_template_file Path to template file. * @param string $_template_file Path to template file.
Expand Down

0 comments on commit c2bcdea

Please sign in to comment.