Bundled Themes: Declare support for the `html5` feature `navigation-widgets`.

Widgets that output a list of links are now wrapped within `<nav>` elements to improve semantics and accessibility.

The `<nav>` elements are native landmark regions, which helps assistive technology users to navigate through them.

Follow-up to [48349], [49177].

Props hareesh-pillai, justinahinon, afercia, williampatton.
Fixes #51445.

git-svn-id: https://develop.svn.wordpress.org/trunk@49208 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2020-10-19 20:30:47 +00:00
parent ec624193eb
commit ab19c66463
7 changed files with 7 additions and 0 deletions

View File

@ -102,6 +102,7 @@ if ( ! function_exists( 'twentyfifteen_setup' ) ) :
'caption', 'caption',
'script', 'script',
'style', 'style',
'navigation-widgets',
) )
); );

View File

@ -146,6 +146,7 @@ if ( ! function_exists( 'twentyfourteen_setup' ) ) :
'caption', 'caption',
'script', 'script',
'style', 'style',
'navigation-widgets',
) )
); );

View File

@ -76,6 +76,7 @@ if ( ! function_exists( 'twentynineteen_setup' ) ) :
'caption', 'caption',
'script', 'script',
'style', 'style',
'navigation-widgets',
) )
); );

View File

@ -79,6 +79,7 @@ function twentyseventeen_setup() {
'caption', 'caption',
'script', 'script',
'style', 'style',
'navigation-widgets',
) )
); );

View File

@ -108,6 +108,7 @@ if ( ! function_exists( 'twentysixteen_setup' ) ) :
'caption', 'caption',
'script', 'script',
'style', 'style',
'navigation-widgets',
) )
); );

View File

@ -168,6 +168,7 @@ function twentythirteen_setup() {
'caption', 'caption',
'script', 'script',
'style', 'style',
'navigation-widgets',
) )
); );

View File

@ -105,6 +105,7 @@ function twentytwenty_theme_support() {
'caption', 'caption',
'script', 'script',
'style', 'style',
'navigation-widgets',
) )
); );