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

git-svn-id: https://develop.svn.wordpress.org/trunk@7132 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-03-02 21:41:35 +00:00
parent edd3b12d0c
commit fc8d871335
1 changed files with 3 additions and 0 deletions

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;