[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
Tue Aug 5 03:03:35 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:  Future Release
 Priority:  normal       |     Version:  3.9
Component:               |  Resolution:
  Upgrade/Install        |     Focuses:  accessibility, javascript,
 Severity:  minor        |  administration
 Keywords:  has-patch    |
  2nd-opinion            |
-------------------------+-------------------------------------------------
Changes (by pento):

 * keywords:  has-patch 4.1-early => has-patch 2nd-opinion


Comment:

 That's a good point, I think we'll need a different approach to handle
 plurals properly.

 We have a few options, but I'm not sure which is the least insane:

 * Add [https://slexaxton.github.io/Jed/ Jed] to core. We can use this to
 properly handle the multiple plural forms, with minimum modification to
 existing code.

 * After an update has happened, manipulate the appropriate transient that
 `wp_get_update_data()` uses to generate the string, then
 `WP_Upgrader_Skin::decrement_update_count` can call
 `wp_get_update_data()`, send the string to the browser, then the string
 can be updated easily.

 * Same as above, but call
 `wp_version_check()`/`wp_update_plugins()`/`wp_update_themes()` to update
 the transients.

 Alternatively, we can go for the easier option of just setting the string
 to "Updates available", and not bothering trying to generate an accurate
 string.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29022#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list