Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
I have made some changes that enable members to choose whether to use Gravatar or not. I also added a checkbox on the plugin's settings page which, when checked, forces every member to use Gravatar.
If a member hasn't uploaded an image he/she will get the Gravatar regardless of his/her settings.
In addition, I have also added a tiny bit of JavaScript to members' Settings page that will hide their original (uploaded) avatar and/or the link to gravatar.com when appropriate. It also replaces the Gravatar image with the uploaded image when a member unchecks the "Use Gravatar instead of your own image" checkbox, because I felt it was confusing when it showed the Gravatar.
Three new translatable strings have been added:
I'm sure you want to suggest some improvements to them, as my use of the English language has become somewhat sloppy in recent years. Not enough practice, I'm afraid.
A question regarding line 139 in
plugin.php
: Shouldgravatar.useGravatar
beGravatar.useGravatar
instead?