Fix avatar classes
This commit is contained in:
@@ -42,8 +42,10 @@ class Roots_Walker_Comment extends Walker_Comment {
|
||||
}
|
||||
}
|
||||
|
||||
function roots_get_avatar($avatar) {
|
||||
function roots_get_avatar($avatar, $type) {
|
||||
if (!is_object($type)) { return $avatar; }
|
||||
|
||||
$avatar = str_replace("class='avatar", "class='avatar pull-left media-object", $avatar);
|
||||
return $avatar;
|
||||
}
|
||||
add_filter('get_avatar', 'roots_get_avatar');
|
||||
add_filter('get_avatar', 'roots_get_avatar', 10, 2);
|
||||
|
||||
Reference in New Issue
Block a user