Skip to content

Instantly share code, notes, and snippets.

@vicchi
Created November 8, 2012 13:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vicchi/4038938 to your computer and use it in GitHub Desktop.
Save vicchi/4038938 to your computer and use it in GitHub Desktop.
Add Local Avatars - get_avatar filter patch for avatars.php
1295,1296c1295
< $alt = 'avatar';
<
---
>
1401c1400
< $avatar = "<img src='{$src}' class='{$class} avatar-{$size} avatar-default' height='{$size}' width='{$size}' style='width: {$size}px; height: {$size}px;' alt='{$alt}' />";
---
> $avatar = "<img src='{$src}' class='{$class} avatar-{$size} avatar-default' height='{$size}' width='{$size}' style='width: {$size}px; height: {$size}px;' alt='avatar' />";
1413c1412
< return apply_filters('get_avatar', $avatar, $id_or_email, $size, $default, $alt);
---
> return apply_filters('get_avatar', $avatar, $id_or_email, $size, $default);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment