From fc8d871335438d2de859fa4a40e9eb85a8393e09 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sun, 2 Mar 2008 21:41:35 +0000 Subject: [PATCH] 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 --- wp-includes/pluggable.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index 1b81a68080..0758d16359 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -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;