[wp-trac] [WordPress Trac] #40833: Allow addition of aria-current="page" to current page element in paginate_links()

WordPress Trac noreply at wordpress.org
Sun Sep 10 17:04:05 UTC 2017


#40833: Allow addition of aria-current="page" to current page element in
paginate_links()
-------------------------------------+-------------------------------------
 Reporter:  GrahamArmfield           |       Owner:  afercia
     Type:  enhancement              |      Status:  assigned
 Priority:  normal                   |   Milestone:  4.9
Component:  Themes                   |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch has-           |     Focuses:  accessibility,
  screenshots aria-current           |  administration
-------------------------------------+-------------------------------------

Comment (by afercia):

 Plugins and themes might use `paginate_links()` to build custom
 paginations, for example in a checkout process or a wizard, so it should
 be possible to set the `aria-current` attribute to a value other than
 `page`. For example: `step` would be appropriate for a wizard.
 [attachment:40833.2.diff] adds an `aria_attribute` argument that defaults
 to `page` and updates the tests.

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


More information about the wp-trac mailing list