- Feature: Avatar Privacy is now compatible with PHP 8.2.
- Feature: The plugin now honors the
wp_delete_file
filter when deleting files. - Change: Requires at least PHP 7.4.
- Change: Upgrades
identifier
column ofavatar_privacy_hashes
table to 256 characters on supported MySQL/MariaDB versions (as it was in 2.4.0). - Change: The library
yzalis/identicon
has been removed as a dependency. - Change: Avatar Privacy now honors the
wp_delete_file
filter hook. - Bugfix: Icons from Webmentions using Gravatar will get cached now.
- Bugfix: Uploading avatars for users with no role on the primary site of a Multsite network now works as expected.
- Feature: The size of uploaded images is now checked to make sure processing
does not overload the server. By default, all uploaded images have to be smaller
than 2000×2000 pixels. The constraints can be adjusted with these new filter
hooks:
avatar_privacy_upload_min_width
avatar_privacy_upload_min_height
avatar_privacy_upload_max_width
avatar_privacy_upload_max_height
- Feature: Improved caching to reduce the number of database queries.
- Change: Requires at least WordPress 5.6 and PHP 7.2.
- Change: Support for Internet Explorer (all extant versions, i.e. 9, 10, and 11) has been dropped.
- Change: A fabulous new plugin icon designed by Johanna Amann.
- Bugfix: When a user is deleted, their local avatar image is removed as well.
- Bugfix: The dependency version for JS and CSS files is properly calculated.
(This also fixes the apparently empty PHP warning when
WP_DEBUG
is enabled.)
- Bugfix: Fixes PHP 8.0 deprecation warning in the
level-2/dice
package.
- Feature: Avatar Privacy is now compatible with PHP 8.0.
- Feature: Integration for the following plugins had been added:
- Change: The library
scripturadesign/color
has been removed as a dependency. - Change: Additional hardening.
- Bugfix: Unchecking the Gravatar opt-in and anonymous commenting checkboxes in a user's profile screen works again.
- Bugfix: Gravatar opt-ins by anonymous commenters are now properly saved on WordPress 5.5 and later.
- Bugfix: Gracefully handle changes to WordPress' default DB collation (no
more
Illegal mix of collations
errors).
- Bugfix: Don't break stuff (another build process fix, for real this time).
- Bugfix: An unfortunate oversight in the build process led to crashes instead of the intended graceful failure when the installation requirements were not met.
- Bugfix: Don't break the site when the options value in the DB has become corrupted.
- Bugfix: Workaround for maximum database key length when using MySQL < 5.7.7 or MariaDB < 10.2.2.
- Feature: Legacy (default) avatars are now properly cached and resized.
- Feature: There are now API methods to get and set a user's (local) avatar (and their Gravatar and anonymous commenting policies).
- Feature: New WP-CLI commands relating to local avatars added.
- Feature: Integration for the Simple Author Box plugin has been added.
- Change: Requires at least WordPress 5.2 and PHP 7.0.
- Change: The
yzalis/identicon
package has been updated to version 2.0. - Change: Some unused files have been removed from the
vendor-scoped
directory. - Change: A new per-site database table for fast hash lookup has been introduced
(base name
avatar_privacy_hashes
). - Change: General code clean-up and removal of PHP 5.6 workarounds.
- Bugfix: Gravatars will be properly regenerated for comment authors that have not set a policy (when the site-admin has switched the default to "opt-out").
- Bugfix: When a user requests deletion of their personal data, this now includes the uploaded avatar image files.
- Bugfix: A timestamp is added to uploaded avatar images for better browser caching in the Profile screen.
- Bugfix: Allow plain URLs as default avatars. Use the filter hook
avatar_privacy_allow_remote_default_icon_url
to allow third-party domains andavatar_privacy_validate_default_icon_url
if you want to implement your own image URL validation. - Bugfix: Properly handle trackback/linkback avatars. This includes a workaround
for avatars provided by the Webmention
plugin. You can use
avatar_privacy_allow_remote_avatar_url
to prohibit third-party domains (the default is to allow them for webmentions) andavatar_privacy_validate_avatar_url
if you want to implement your own image URL validation. - Change: Due to the trackback/linkback bug fix, the priority for
pre_get_avatar_data
filter can now be adjusted using theavatar_privacy_pre_get_avatar_data_filter_priority
hook instead of being hardcoded.
- Bugfix: Timestamps in WP-CLI commands now always use GMT.
- Bugfix: Some error messages were not getting translated because of a WP.org infrastructure change.
- Bugfix: Will not crash on WordPress 4.9 anymore when the Gutenberg plugin is not activated.
- Bugfix: The label for the block settings panel of the Avatar block was incorrect.
- Feature: New shortcode
[avatar-privacy-form]
(optional parameter:avatar-size
) to allow changing Avatar Privacy's user settings on the frontend of the site. - Feature: Two blocks have been added to the Block Editor to allow displaying a user's avatar and to change the settings related Avatar Privacy on the frontend.
- Feature: Three new generated default avatars:
- Bird Avatars,
- Cat Avatars (both designed by David Revoy), and
- RoboHash (designed by Zikri Kader).
- Feature: Integration for the following plugins had been added:
- Feature: New template function
\Avatar_Privacy\gravatar_checkbox()
for legacy themes added. - Feature: There is a CLI interface to some parts of Avatar Privacy:
wp avatar-privacy db show
: Show information about the custom database table(s).wp avatar-privacy db list
: List entries in the custom database table(s).wp avatar-privacy db create
: Create the custom database table.wp avatar-privacy db upgrade
: Upgrade the structure of the custom database table.wp avatar-privacy uninstall
: Remove data added by Avatar Privacy.wp avatar-privacy cron list
: List active cron jobs created by the plugin.wp avatar-privacy cron delete
: Delete cron jobs created by the plugin.
- Change:
avapr_get_avatar_checkbox()
has been deprecated in favor of\Avatar_Privacy\get_gravatar_checkbox()
. - Change: The ID and name of the
use_gravatar
comment form checkbox has been changed toavatar-privacy-use-gravatar
. Please update custom CSS rules accordingly. - Change: Additional inline styling is added to the
avatar-privacy-use-gravatar
comment form checkbox to work around common theme limitations. Styling can be disabled using theavatar_privacy_comment_checkbox_disable_inline_style
filter hook. - Change: All external PHP dependencies have been moved to the namespace
Avatar_Privacy\Vendor
to reduce the chance of conflicts with other plugins. - Bugfix: Gravatars are only cached if they are actually images to prevent issues with temporary Varnish errors on Gravatar.com.
- Bugfix: Re-allow installation on 4.9.x for increased compatibility with possible future WordPress Core changes. The 2.2.x branch of Avatar Privacy is the last that will support WordPress < 5.2.
- Bugfix: Compatibility with Windows servers.
- Feature: Integration for the following plugins had been added:
- Feature: Improved compatibility with multisite installations. Plugin data will be properly deleted on uninstallation or when a site is removed. ("Large Networks" will still have to take manual action to prevent timeouts.)
- Feature: Network settings for enabling/disabling global table use on multisite. Existing global data will be migrated to the site-specific tables when global table use is disabled (but not in the other direction).
- Change:
usermeta
keys are now prefixed (avatar_privacy_use_gravatar
instead ofuse_gravatar
). - Change: Generally improved code quality through unit tests.
- Bugfix: New multisite installations were incorrectly detected as "legacy", making them use the global table (instead of per-site tables). Affected installations can be switched via the new network settings page.
- Bugfix: Fixed a previously undiscovered compatibility issue with recent versions of EWWW Image Optimizer.
- Bugfix: Updated included libraries for improved compatibility with other plugins.
- Bugfix: Prevent warnings when trying to retrieve the avatar for an invalid user ID.
- Bugfix: Updated included libraries for improved compatibility with other plugins.
- Bugfix: The plugin no longer fails with a fatal error on PHP 5.6 (accidentally introduced in 2.0.0).
- Feature: Administrators can now upload site-specific default avatar images.
- Feature: The default policy previously only accessible via the
avatar_privacy_gravatar_use_default
hook can now be set from theDiscussion
settings page. - Feature: New filter hooks
avatar_privacy_gravatar_link_rel
andavatar_privacy_gravatar_link_target
to filter therel
andtarget
attributes of all links to Gravatar.com. - Bugfix: The REST API returned incorrect avatar URLs for registered users (workaround for trac ticket #40030).
- Bugfix: The gravatar use cookie is only set when the comment author has given consent.
- Change: Internal restructuring to make maintenance easier.
- Bugfix: Changing the default gravatar policy via
avatar_privacy_gravatar_use_default
works again for registered users.
- Feature: Supports the new privacy tools on WordPress >= 4.9.6 (export and deletion of personal data, suggested privacy notice text).
- Feature: Registered users can opt into allowing logged-out comments with the same mail address to user their profile pictures.
- Feature: The plugin is now compatible with bbPress.
- Feature: The position of the
use_gravatar
checkbox can be adjusted via the new filter hookavatar_privacy_use_gravatar_position
. - Change: Trashed comments and comments marked as spam do not trigger a validation
request to Gravatar.com if the admin has set the default gravatar use policy
to "enabled" via the filter hook
avatar_privacy_gravatar_use_default
.
- Bugfix: The
use_gravatar
is actually checked when the cookie has been set. - Bugfix: A (harmless) PHP warning has been fixed.
- Bugfix: Only valid response codes from Gravatar.com are cached (200 and 404).
- Bugfix: Plugin transients are cleared on plugin upgrades.
- Bugfix: The workaround for trac ticket #42663
introduced in 1.0.5 is expanded to all uses of
wp_get_image_editor()
.
- Bugfix: Prefer GD-based implementations of
WP_Image_Editor
to work around trac ticket #42663. - Bugfix: The
rel
andtarget
attributes are allowed inuse_gravatar
checkbox labels and by the default, thenoopener
andnofollow
values for therel
attribute are added to the Gravatar.com link. - Bugfix: Invalid 0-byte image files are not saved anymore.
- Bugfix: When the plugin is uninstalled, the default avatar image is really
reset to
mystery
if necessary. - Bugfix: The
use_gravatar
checkbox is compatible with more themes now.
- Bugfix: The plugin no longer fails with a fatal error on PHP 5.6.
- Bugfix: PNG avatars were not created correctly when EWWW Image Optimizer was enabled.
- Bugfix: Non-multisite installations triggered an SQL error in some situations.
- Feature: All default avatars are generated on your server.
- Feature: Gravatar.com avatars are cached locally. (The cache is cleaned regularly via a cron job to prevent unlimited growth.)
- Feature: Registered users can upload their own avatar images to your server.
- Change: Refactored according to modern development principles.
- Change: Removed settings in favor of sensible default values and filter hooks:
- Gravatar.com usage is opt-in and gravatars are only displayed if the exist.
- The default behavior for legacy comments can be customized via the
avatar_privacy_gravatar_use_default
filter hook.
- Change: All static default icons are now SVG images.
- adapted the plugin to some subtle changes in how WordPress handles the avatar filter (mainly, default icons arent't passed as URLs anymore)
- added support for the srcset attribute
- raised minimum PHP version to 5.6.0
- raised minimum WordPress version to 4.2
- checked compatibility with WP 4.9.5
- used transients API to cache results of requests to gravatar.com for a small amount of time
- added two previously untranslated strings to the translation files
- added a link to the label of the checkbox in the comment and user profile forms
- checked compatibility with WP 3.5.1
- Bugfix: lower-case and trim E-Mail addresses before hashing to produce a gravatar URL (otherwise gravatars are not displayed if the address is entered with mixed case) -- thanks to "Schokokaese" for finding the problem and solution
- Bugfix: repaired a bug so that the plugin actually caches the results of a gravatar check and uses these cached results if the same E-Mail address appears twice on a page
- Bugfix: corrected image name of the "Media Artist" image (large version)
- removed the check for the get_headers PHP function unless the "Don't publish encrypted E-Mail addresses for non-members of gravatar.com." option is enabled to not annoy other users -- thanks to Scott for finding the problem
- added some simple inline CSS to fix the display of the checkbox in the comment form with TwentyTen theme
- fixed notice for deprecated function get_user_by_email
- added screenshots
- tested with WP 3.4
- tested with plugins User Photo and Twitter Avatar Reloaded
- initial release