[wp-trac] [WordPress Trac] #55020: role="navigation" missing from nav element produced with the_posts_pagination
WordPress Trac
noreply at wordpress.org
Tue Feb 1 16:11:06 UTC 2022
#55020: role="navigation" missing from nav element produced with
the_posts_pagination
--------------------------+----------------------
Reporter: hannu__h | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: General | Version:
Severity: normal | Resolution: wontfix
Keywords: | Focuses:
--------------------------+----------------------
Changes (by sabernhardt):
* milestone: Awaiting Review =>
Old description:
> Upgrade from 5.8.3 to 5.9 and the role="navigation" is missing from nav
> elements which are produced with the_posts_pagination function.
>
> This causes CSS styles break which are defined with
> nav[role="navigation"].
>
> Example of the_posts_pagination:
>
> <?php the_posts_pagination( array('screen_reader_text' => __('More
> articles', 'nnn_theme'), 'type' => 'list', 'prev_text' => __('Previous
> page', 'nnn_theme'), 'next_text' => __('Next page', 'nnn_theme')) ); ?>
New description:
Upgrade from 5.8.3 to 5.9 and the `role="navigation"` is missing from nav
elements which are produced with `the_posts_pagination` function.
This causes CSS styles break which are defined with
`nav[role="navigation"]`.
Example of the_posts_pagination:
{{{
<?php the_posts_pagination( array('screen_reader_text' => __('More
articles', 'nnn_theme'), 'type' => 'list', 'prev_text' => __('Previous
page', 'nnn_theme'), 'next_text' => __('Next page', 'nnn_theme')) ); ?>
}}}
--
Comment:
Thanks for reporting and for following up! Yes, the change was intentional
:)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55020#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list