Make sure avatar size is numeric. Props Martin2006. fixes #6069

git-svn-id: http://svn.automattic.com/wordpress/trunk@7132 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-03-02 21:41:35 +00:00
parent 48368e8a7f
commit bf8f7b0f28

View File

@ -1186,6 +1186,9 @@ function get_avatar( $id_or_email, $size = '64', $default = '' ) {
if ( ! get_option('show_avatars') )
return false;
if ( !is_numeric($size) )
$size = '64';
$email = '';
if ( is_numeric($id_or_email) ) {
$id = (int) $id_or_email;