Docs: Add documentation for WP_Comments_List_Table::floated_admin_avatar().

Props akbarhusen, ayeshrajans, Soean, ajayghaghretiya1, netweb, SergeyBiryukov.
Fixes #41491.
Built from https://develop.svn.wordpress.org/trunk@47507


git-svn-id: http://core.svn.wordpress.org/trunk@47282 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-03-25 14:43:11 +00:00
parent b4e1e8f0d1
commit 2b030a1647
3 changed files with 12 additions and 3 deletions

View File

@ -55,6 +55,15 @@ class WP_Comments_List_Table extends WP_List_Table {
);
}
/**
* 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' );

View File

@ -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' );

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.5-alpha-47506';
$wp_version = '5.5-alpha-47507';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.