Use default parameter when getting the default avatar type.

Props johnjamesjacoby.
Fixes #32997.


git-svn-id: https://develop.svn.wordpress.org/trunk@33264 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Konstantin Obenland 2015-07-14 15:38:02 +00:00
parent 3a696d7d91
commit 0db2e4e6f1

View File

@ -258,9 +258,7 @@ $avatar_defaults = array(
* @param array $avatar_defaults Array of default avatars.
*/
$avatar_defaults = apply_filters( 'avatar_defaults', $avatar_defaults );
$default = get_option('avatar_default');
if ( empty($default) )
$default = 'mystery';
$default = get_option( 'avatar_default', 'mystery' );
$size = 32;
$avatar_list = '';