[wp-trac] [WordPress Trac] #41859: Add aria-current to the paginated posts links output by wp_link_pages()

WordPress Trac noreply at wordpress.org
Sun Dec 17 17:01:25 UTC 2017


#41859: Add aria-current to the paginated posts links output by wp_link_pages()
------------------------------------+----------------------------
 Reporter:  afercia                 |       Owner:  afercia
     Type:  defect (bug)            |      Status:  assigned
 Priority:  normal                  |   Milestone:  5.0
Component:  Themes                  |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  aria-current has-patch  |     Focuses:  accessibility
------------------------------------+----------------------------

Comment (by antonioeatgoat):

 @afercia, to add the CSS class to `_wp_link_page()` is definitely the best
 solution. I've actually made confusion, because I was sure that that
 functions was used also in other places, for this reason I avoided to edit
 it. In addition `_wp_link_page()` is used many times there and I missed
 it, so `str_replace()` was really a terrible solution. My bad, I
 apologize.

 Just uploaded the new patch following your suggestions, only the unit
 tests are still missing.

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


More information about the wp-trac mailing list