[wp-trac] [WordPress Trac] #29022: Screen reader text isn't updated when plugin update count is updated
WordPress Trac
noreply at wordpress.org
Sat Aug 2 02:54:00 UTC 2014
#29022: Screen reader text isn't updated when plugin update count is updated
-------------------------------------+-------------------------------------
Reporter: pento | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Upgrade/Install | Version: 3.9
Severity: normal | Resolution:
Keywords: good-first-bug has- | Focuses: accessibility,
patch | javascript, administration
-------------------------------------+-------------------------------------
Comment (by pento):
So, it turns out I may've been a bit optimistic in labelling this a `good-
first-bug`. :-)
What I would suggest is using `wp_localize_script()` to send all the
strings you'll need, and the actual update counts, in `update-core.php`.
In the JS, you'll need to duplicate the part of `wp_get_update_data()`
that generates `$update_title`, to create the screan reader string.
Because you're sending the actual update counts, it's probably worth
refactoring `wp.updates.decrementCount()` to use those counts instead of
reading it from the HTML.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29022#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list