WordPress.org

Make WordPress Core

Changeset 47507


Ignore:
Timestamp:
03/25/2020 02:41:15 PM (11 days ago)
Author:
SergeyBiryukov
Message:

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

Props akbarhusen, ayeshrajans, Soean, ajayghaghretiya1, netweb, SergeyBiryukov.
Fixes #41491.

Location:
trunk/src/wp-admin/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-comments-list-table.php

    r47234 r47507  
    5656    }
    5757
     58    /**
     59     * Adds avatars to comment author names.
     60     *
     61     * @since 3.1.0
     62     *
     63     * @param string $name       Comment author name.
     64     * @param int    $comment_ID Comment ID.
     65     * @return string Avatar with the user name.
     66     */
    5867    public function floated_admin_avatar( $name, $comment_ID ) {
    5968        $comment = get_comment( $comment_ID );
  • trunk/src/wp-admin/includes/comment.php

    r47198 r47507  
    182182
    183183/**
    184  * Add avatars to relevant places in admin, or try to.
     184 * Adds avatars to relevant places in admin.
    185185 *
    186186 * @since 2.5.0
    187187 *
    188188 * @param string $name User name.
    189  * @return string Avatar with Admin name.
     189 * @return string Avatar with the user name.
    190190 */
    191191function floated_admin_avatar( $name ) {
Note: See TracChangeset for help on using the changeset viewer.