From 0b993ffe35d45f70b8060a79ec463174fbe7528e Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Mon, 12 Jan 2015 00:22:12 +0000 Subject: [PATCH] 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 --- src/wp-includes/link-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/link-template.php b/src/wp-includes/link-template.php index b679cd1cfc..ae1224bd52 100644 --- a/src/wp-includes/link-template.php +++ b/src/wp-includes/link-template.php @@ -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'] ) {