You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When Gravatar requests are blocked the default mystery image in the comments list table is still requested from gravatar.com.
It looks like this is caused by get_avatar( $comment, 32, 'mystery' ); in WP_Comments_List_Table::floated_admin_avatar(). Removing the mystery default loads the local image.
The text was updated successfully, but these errors were encountered:
/** * Overrides any custom default value with the one set in the settings. * * @param array $args Arguments passed to get_avatar_data(), after processing. * @return $array Filtered arguments. * */functionds_force_avatar_default( $args ) {
$args['default'] = get_option( 'avatar_default', 'mystery' );
return$args;
}
add_filter( 'pre_get_avatar_data', 'ds_force_avatar_default' );
When Gravatar requests are blocked the default mystery image in the comments list table is still requested from gravatar.com.
It looks like this is caused by
get_avatar( $comment, 32, 'mystery' );
inWP_Comments_List_Table::floated_admin_avatar()
. Removing themystery
default loads the local image.The text was updated successfully, but these errors were encountered: