mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
After [33891], get_comment() returns global $comment if no args are passed and the global is set (after setting the default to null here). This allows us to ditch global comment imports.
See #33638. git-svn-id: https://develop.svn.wordpress.org/trunk@33963 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -156,14 +156,11 @@ function get_pending_comments_num( $post_id ) {
|
||||
*
|
||||
* @since 2.5.0
|
||||
*
|
||||
* @global object $comment
|
||||
*
|
||||
* @param string $name User name.
|
||||
* @return string Avatar with Admin name.
|
||||
*/
|
||||
function floated_admin_avatar( $name ) {
|
||||
global $comment;
|
||||
$avatar = get_avatar( $comment, 32, 'mystery' );
|
||||
$avatar = get_avatar( get_comment(), 32, 'mystery' );
|
||||
return "$avatar $name";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user