diff --git a/src/wp-admin/includes/class-wp-comments-list-table.php b/src/wp-admin/includes/class-wp-comments-list-table.php index 91ff88ec8de5..be00e1f7b2f5 100644 --- a/src/wp-admin/includes/class-wp-comments-list-table.php +++ b/src/wp-admin/includes/class-wp-comments-list-table.php @@ -55,6 +55,15 @@ public function __construct( $args = array() ) { ); } + /** + * Adds avatars to comment author names. + * + * @since 3.1.0 + * + * @param string $name Comment author name. + * @param int $comment_ID Comment ID. + * @return string Avatar with the user name. + */ public function floated_admin_avatar( $name, $comment_ID ) { $comment = get_comment( $comment_ID ); $avatar = get_avatar( $comment, 32, 'mystery' ); diff --git a/src/wp-admin/includes/comment.php b/src/wp-admin/includes/comment.php index 4000fe7a3690..9683c72883c6 100644 --- a/src/wp-admin/includes/comment.php +++ b/src/wp-admin/includes/comment.php @@ -181,12 +181,12 @@ function get_pending_comments_num( $post_id ) { } /** - * Add avatars to relevant places in admin, or try to. + * Adds avatars to relevant places in admin. * * @since 2.5.0 * * @param string $name User name. - * @return string Avatar with Admin name. + * @return string Avatar with the user name. */ function floated_admin_avatar( $name ) { $avatar = get_avatar( get_comment(), 32, 'mystery' );