[wp-trac] [WordPress Trac] #29022: Screen reader text (and link title) isn't updated when plugin update count is updated
WordPress Trac
noreply at wordpress.org
Sun Aug 3 18:49:20 UTC 2014
#29022: Screen reader text (and link title) isn't updated when plugin update count
is updated
-------------------------+-------------------------------------------------
Reporter: pento | Owner:
Type: defect | Status: new
(bug) | Milestone: Awaiting Review
Priority: normal | Version: 3.9
Component: | Resolution:
Upgrade/Install | Focuses: accessibility, javascript,
Severity: minor | administration
Keywords: has-patch |
dev-feedback |
-------------------------+-------------------------------------------------
Comment (by adamsilverstein):
Thanks to paulschreiber for working thru the details and testing with me
at #wcnyc2014.
In [attachment:29022.2.diff]:
* pass counts to JavaScript via wp_localize_script
* parseInt on counts so comparison !== 0 works correctly
* localize updates.js, not plugin-install.js
* localize strings with %d, then replace with counts in JavaScript
* track decremented counts, so updating works correctly when updating
multiple items
also:
* add a translation count to initial title/screen-reader values
Appreciate testing/review... thanks!
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29022#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list