Opened 10 years ago
Last modified 4 weeks ago
#38896 new enhancement
avatar_settings help text may not be accurate if avatar_defaults is filtered
| Reported by: | johnjamesjacoby | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Options, Meta APIs | Version: | |
| Severity: | normal | Keywords: | has-patch 2nd-opinion has-screenshots |
| Cc: | Focuses: | administration |
Description
The string says:
For users without a custom avatar of their own, you can either display a generic logo or a generated one based on their email address.
But, I have a need to remove generated Gravatars entirely using the avatar_defaults filter, which makes this text misleading.
In addition, this text is not wrapped in any defining HTML, making it impossible to reliably target with CSS or JS even.
Attachments (2)
Change History (4)
#1
@
10 years ago
- Keywords has-patch 2nd-opinion has-screenshots added
- Type defect (bug) → enhancement
#2
@
4 weeks ago
For users without a custom avatar of their own, you can either display a generic logo or a generated one based on their email address.
The text above is now wrapped in a <p> tag, allowing it to be targeted using CSS and JavaScript
through its parent element.
The <p> tag was added in this commit:
https://github.com/WordPress/wordpress-develop/commit/12c154717b4dbc63d1e364db6ab3aa517a44c731#diff-c3ef362f363a9e53dbd0c4d54e7eab411a48be54d3e74455a4f493a56e0f0cb4R232-R258
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Add filters for avatar types, plus 1 for the avatar help text (since several old plugins with many active installations modify this area)