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:
parent
69f8b26d89
commit
0b993ffe35
@ -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'] ) {
|
||||
|
Loading…
Reference in New Issue
Block a user