[wp-trac] [WordPress Trac] #35372: Post/paging navigation forces use of HTML5

WordPress Trac noreply at wordpress.org
Fri Jan 8 16:46:45 UTC 2016


#35372: Post/paging navigation forces use of HTML5
--------------------------+-----------------------------
 Reporter:  bizurkur      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.4.1
 Severity:  normal        |   Keywords:
  Focuses:  template      |
--------------------------+-----------------------------
 Pagination template tags appear to have been created based on this ticket
 https://core.trac.wordpress.org/ticket/29808, which recommended wrapping
 the links in an HTML5 {{{<nav>}}} element.

 Being that this is a core function and users who are using themes without
 {{{add_theme_support( 'html5' )}}} enabled, the output of
 {{{the_posts_pagination()}}} and {{{the_post_navigation()}}} shouldn't
 force the use of HTML5.

 This should be an easy fix of simply checking if theme support for HTML5
 is enabled and then either wrapping the output of the template tags in a
 {{{<nav>}}} element (how it currently is) or simply a {{{<div>}}} when
 HTML5 support is not enabled.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35372>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list