Twenty Twenty-One: Fix the nesting of the main element.
The main element must not appear as a descendant of the section element. Correct markup is the first requirement to make user agents and assistive technologies work properly. Changes the <section> element that was wrapping the <main> element to a <div>. Follow-up to [45942] for Twenty Nineteen. Props albertomake, poena. Reviewed by SergeyBiryukov, peterwilsoncc. Merges [49759] to the 5.6 branch. Fixes #51944. Built from https://develop.svn.wordpress.org/branches/5.6@49760 git-svn-id: http://core.svn.wordpress.org/branches/5.6@49483 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6e2834c6d7
commit
dc95d8a382
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</main><!-- #main -->
|
</main><!-- #main -->
|
||||||
</section><!-- #primary -->
|
</div><!-- #primary -->
|
||||||
</div><!-- #content -->
|
</div><!-- #content -->
|
||||||
|
|
||||||
<?php get_template_part( 'template-parts/footer/footer-widgets' ); ?>
|
<?php get_template_part( 'template-parts/footer/footer-widgets' ); ?>
|
||||||
|
|
|
@ -28,5 +28,5 @@
|
||||||
<?php get_template_part( 'template-parts/header/site-header' ); ?>
|
<?php get_template_part( 'template-parts/header/site-header' ); ?>
|
||||||
|
|
||||||
<div id="content" class="site-content">
|
<div id="content" class="site-content">
|
||||||
<section id="primary" class="content-area">
|
<div id="primary" class="content-area">
|
||||||
<main id="main" class="site-main" role="main">
|
<main id="main" class="site-main" role="main">
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.6-RC4-49756';
|
$wp_version = '5.6-RC4-49760';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue