[wp-trac] [WordPress Trac] #36558: Replace H2 title in posts pagination to div or span

WordPress Trac noreply at wordpress.org
Sun Apr 17 09:15:14 UTC 2016


#36558: Replace H2 title in posts pagination to div or span
-------------------------+------------------
 Reporter:  webliberty   |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:
Component:  General      |     Version:  4.1
 Severity:  normal       |  Resolution:
 Keywords:  close        |     Focuses:
-------------------------+------------------
Changes (by Clorith):

 * keywords:   => close
 * milestone:  Awaiting Review =>


Comment:

 This can actually be overwritten using the `navigation_markup_template`
 filter as of 4.4, so I'm not sure adding complexity to the function call
 it self is needed.

 The `get_posts_pagination` function internally calls `_navigation_markup`
 which then contains the filter described.

 That would also let you handle it for comment pagination in one go, as
 seen from
 https://developer.wordpress.org/reference/functions/_navigation_markup/

 IT should be noted that in most cases you will be calling this within The
 Loop as part of the template where you already have the `h1` tag defined
 and the natural progression is for a new headline above this pagination
 should be `h2` for accessibility reasons.

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


More information about the wp-trac mailing list