內容簡介
在顯示啟用頭像的文章或評論時,WordPress 總是會檢查 Gravatar 的存在。 (注意:即使預設頭像“神秘人”和“空白”實際上也是從 gravatar.com 提供的 Gravatar。)WordPress 通過將每個顯示的發帖者或評論者電子郵件地址的 MD5 編碼哈希值發送到 gravatar.com 來執行此操作。即使有許多插件引入本地存儲的預設或用戶頭像,這個檢查仍然會發生。除此之外,一些主題或插件即使在 WordPress 的設置中完全禁用頭像的顯示,仍會強制(Gr)avatars 加載。如果由於某種原因您不希望 Gravatar 接收這些請求(一些人對 GDPR 表達了關注),那麼這個插件就是為您而設。
它的工作原理是,每次 WordPress 嘗試顯示一個頭像時,這個插件首先檢查圖像是否即將從 gravatar.com 檢索。如果是,URL 將被更改為本地存儲的“神秘人”圖像(隨插件一起提供)。如果頭像有其他來源,則此插件不作介入。
討論頁面上的 Gravatar 也被移除,並更換為本地存儲的“神秘人”圖像。同樣,任何非 Gravatar 圖像都不會受到影響。
啟用此插件後,如果 Gravatar 被選中作為預設頭像,則該設置將更改為本地存儲的“神秘人”圖像。如果選擇了任何非 Gravatar 頭像,則不會更改該設置。
在停用此插件時,如果將本地存儲的“神秘人”圖像選擇為預設頭像,該設置將更改為 Gravatar 標誌。如果選擇了任何非 Gravatar 頭像,則不會更改該設置。
外掛標籤
開發者團隊
原文外掛簡介
When displaying a post or comment with avatars enabled, WordPress will always check for the existence of a Gravatar. (Note: even the default avatars ‘mystery person’ and ‘blank’ are in fact Gravatars served from gravatar.com.) WordPress does this by sending an MD5 hash of every displayed post or comment author’s email address to gravatar.com. Even with many plugins that introduce locally stored default or user avatars, this check still happens. On top of that, some themes or plugins force (Gr)avatars to load even if the display of avatars is disabled completely in WordPress’ settings. If for whatever reason you do not wish for Gravatar to receive these requests (which some people have voiced GDPR concerns about), this plugin is for you.
The way it works is every time WordPress attempts to display an avatar, this plugin first checks if the image is about to be retrieved from gravatar.com. If it is, the URL is changed to the locally stored ‘mystery person’ image (included with this plugin). If the avatar has any other source, this plugin doesn’t interfere.
Gravatars are also removed from the Discussion page in Settings and replaced with the locally stored ‘mystery person’ image. Again, any non-Gravatar images are left alone.
Upon activation of this plugin, if a Gravatar is selected as the default avatar, that setting is changed to the locally stored ‘mystery person’ image. If any non-Gravatar avatar is selected, that setting isn’t changed.
Upon deactivation of this plugin, if the locally stored ‘mystery person’ image is selected as the default avatar, that setting is changed to the Gravatar logo. If any non-Gravatar avatar is selected, that setting isn’t changed.
