Ticket #21930: pluggable.php.patch
File pluggable.php.patch, 800 bytes (added by , 11 years ago) |
---|
-
wp-includes/pluggable.php
1625 1625 $default = $avatar_default; 1626 1626 } 1627 1627 1628 // Allow hooks to set an avatar before going through Gravatar construction 1629 $avatar = apply_filters('pre_get_avatar', '', $id_or_email, $size, $default, $alt); 1630 1631 if ( empty( $avatar ) ) { 1628 1632 if ( !empty($email) ) 1629 1633 $email_hash = md5( strtolower( trim( $email ) ) ); 1630 1634 … … 1664 1668 } else { 1665 1669 $avatar = "<img alt='{$safe_alt}' src='{$default}' class='avatar avatar-{$size} photo avatar-default' height='{$size}' width='{$size}' />"; 1666 1670 } 1671 } 1667 1672 1668 1673 return apply_filters('get_avatar', $avatar, $id_or_email, $size, $default, $alt); 1669 1674 }