fix: add missing alt text to Who's Online widget avatar - #147
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
▶ Preview in WordPress PlaygroundBoots a fresh WordPress with this PR's presence-api build, seeds 5 demo users, and drops you on the dashboard. Stress-test variant: 40 demo users · Built from |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #147 +/- ##
============================================
+ Coverage 27.24% 28.94% +1.70%
Complexity 174 174
============================================
Files 15 15
Lines 1817 1817
============================================
+ Hits 495 526 +31
+ Misses 1322 1291 -31
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Description
This Pull Request resolves an accessibility issue where the avatar in the "Who's Online" dashboard widget is rendered without alternative text (
alt="").In
includes/widgets/class-wp-presence-widget-whos-online.php,get_avatar()was called without the$altargument:This PR updates the call to pass the user's display_name as the $alt parameter, matching the existing pattern used elsewhere in the plugin (e.g., includes/post-list.php):
Fixes