[wp-trac] [WordPress Trac] #35372: Post/paging navigation forces use of HTML5
WordPress Trac
noreply at wordpress.org
Fri Jan 8 19:25:12 UTC 2016
#35372: Post/paging navigation forces use of HTML5
--------------------------+------------------------------
Reporter: bizurkur | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: 4.4.1
Severity: normal | Resolution:
Keywords: | Focuses: template
--------------------------+------------------------------
Changes (by SergeyBiryukov):
* component: General => Themes
Old description:
> 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.
New description:
Pagination template tags appear to have been created based on this 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#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list