Bug, WordPress avatar setting not respected
-
Theme uses code like this:
<img src="<?php echo esc_url(get_avatar_url($author_id, array('size' => 150))); ?>">
If avatars are disabled in WordPress > Settings > Discussion the theme still embeds external hosted
gravatar.com
images.This is a GDPR problem – similar as described here.
Suggested fix: Check
get_option( 'show_avatars' )
before usingget_avatar_url()
output.Seek 2.0.5
- The topic ‘Bug, WordPress avatar setting not respected’ is closed to new replies.