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:
parent
edd3b12d0c
commit
fc8d871335
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user