If get_avatar_data() is passed an empty value for the default avatar, we should be using the site's avatar_default option instead.

See #21195


git-svn-id: https://develop.svn.wordpress.org/trunk@31154 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Gary Pendergast 2015-01-12 00:22:12 +00:00
parent 69f8b26d89
commit 0b993ffe35

View File

@ -3413,7 +3413,7 @@ function get_avatar_data( $id_or_email, $args = null ) {
}
if ( empty( $args['default'] ) ) {
$args['default'] = 'mystery';
$args['default'] = get_option( 'avatar_default', 'mystery' );
}
switch ( $args['default'] ) {