Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: get_avatar

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
1746           if ( !empty( $rating ) )
1747                $out .= "&r={$rating}";
1748
1749           $out = str_replace( '&', '&', esc_url( $out ) );
1750           $avatar = "<img alt='{$safe_alt}' src='{$out}' class='avatar avatar-{$size} photo' height='{$size}' width='{$size}' />";
1751      } else {
1752           $avatar = "<img alt='{$safe_alt}' src='{$default}' class='avatar avatar-{$size} photo avatar-default' height='{$size}' width='{$size}' />";
1753      }
1754
1755      return apply_filters('get_avatar', $avatar, $id_or_email, $size, $default, $alt);
1756 }
1757 endif;
1758
1759 if ( !function_exists( 'wp_text_diff' ) ) :
1760 /**
1761  * Displays a human readable HTML representation of the difference between two strings.
1762  *
1763  * The Diff is available for getting the changes between versions. The output is
1764  * HTML, so the primary use is for displaying the changes. If the two strings