forked from mirror/_s
Remove landmark roles
* With better browser support, these roles aren't needed now. * Most newer browsers imply them via HTML5 semantics. See: http://html5doctor.com/on-html-belts-and-aria-braces/ Fixes #1132
This commit is contained in:
parent
d3ab4c0da4
commit
f56a070c2b
2
404.php
2
404.php
|
@ -10,7 +10,7 @@
|
||||||
get_header(); ?>
|
get_header(); ?>
|
||||||
|
|
||||||
<div 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">
|
||||||
|
|
||||||
<section class="error-404 not-found">
|
<section class="error-404 not-found">
|
||||||
<header class="page-header">
|
<header class="page-header">
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
get_header(); ?>
|
get_header(); ?>
|
||||||
|
|
||||||
<div 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">
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if ( have_posts() ) : ?>
|
if ( have_posts() ) : ?>
|
||||||
|
|
|
@ -46,7 +46,7 @@ if ( post_password_required() ) {
|
||||||
</h2><!-- .comments-title -->
|
</h2><!-- .comments-title -->
|
||||||
|
|
||||||
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
|
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
|
||||||
<nav id="comment-nav-above" class="navigation comment-navigation" role="navigation">
|
<nav id="comment-nav-above" class="navigation comment-navigation">
|
||||||
<h2 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', '_s' ); ?></h2>
|
<h2 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', '_s' ); ?></h2>
|
||||||
<div class="nav-links">
|
<div class="nav-links">
|
||||||
|
|
||||||
|
@ -67,7 +67,7 @@ if ( post_password_required() ) {
|
||||||
</ol><!-- .comment-list -->
|
</ol><!-- .comment-list -->
|
||||||
|
|
||||||
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
|
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
|
||||||
<nav id="comment-nav-below" class="navigation comment-navigation" role="navigation">
|
<nav id="comment-nav-below" class="navigation comment-navigation">
|
||||||
<h2 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', '_s' ); ?></h2>
|
<h2 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', '_s' ); ?></h2>
|
||||||
<div class="nav-links">
|
<div class="nav-links">
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
</div><!-- #content -->
|
</div><!-- #content -->
|
||||||
|
|
||||||
<footer id="colophon" class="site-footer" role="contentinfo">
|
<footer id="colophon" class="site-footer">
|
||||||
<div class="site-info">
|
<div class="site-info">
|
||||||
<a href="<?php echo esc_url( __( 'https://wordpress.org/', '_s' ) ); ?>"><?php
|
<a href="<?php echo esc_url( __( 'https://wordpress.org/', '_s' ) ); ?>"><?php
|
||||||
/* translators: %s: CMS name, i.e. WordPress. */
|
/* translators: %s: CMS name, i.e. WordPress. */
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
<div id="page" class="site">
|
<div id="page" class="site">
|
||||||
<a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', '_s' ); ?></a>
|
<a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', '_s' ); ?></a>
|
||||||
|
|
||||||
<header id="masthead" class="site-header" role="banner">
|
<header id="masthead" class="site-header">
|
||||||
<div class="site-branding">
|
<div class="site-branding">
|
||||||
<?php
|
<?php
|
||||||
if ( is_front_page() && is_home() ) : ?>
|
if ( is_front_page() && is_home() ) : ?>
|
||||||
|
@ -40,7 +40,7 @@
|
||||||
endif; ?>
|
endif; ?>
|
||||||
</div><!-- .site-branding -->
|
</div><!-- .site-branding -->
|
||||||
|
|
||||||
<nav id="site-navigation" class="main-navigation" role="navigation">
|
<nav id="site-navigation" class="main-navigation">
|
||||||
<button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false"><?php esc_html_e( 'Primary Menu', '_s' ); ?></button>
|
<button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false"><?php esc_html_e( 'Primary Menu', '_s' ); ?></button>
|
||||||
<?php
|
<?php
|
||||||
wp_nav_menu( array(
|
wp_nav_menu( array(
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
get_header(); ?>
|
get_header(); ?>
|
||||||
|
|
||||||
<div 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">
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if ( have_posts() ) :
|
if ( have_posts() ) :
|
||||||
|
|
2
page.php
2
page.php
|
@ -15,7 +15,7 @@
|
||||||
get_header(); ?>
|
get_header(); ?>
|
||||||
|
|
||||||
<div 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">
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
while ( have_posts() ) : the_post();
|
while ( have_posts() ) : the_post();
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
get_header(); ?>
|
get_header(); ?>
|
||||||
|
|
||||||
<section id="primary" class="content-area">
|
<section id="primary" class="content-area">
|
||||||
<main id="main" class="site-main" role="main">
|
<main id="main" class="site-main">
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if ( have_posts() ) : ?>
|
if ( have_posts() ) : ?>
|
||||||
|
|
|
@ -12,6 +12,6 @@ if ( ! is_active_sidebar( 'sidebar-1' ) ) {
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<aside id="secondary" class="widget-area" role="complementary">
|
<aside id="secondary" class="widget-area">
|
||||||
<?php dynamic_sidebar( 'sidebar-1' ); ?>
|
<?php dynamic_sidebar( 'sidebar-1' ); ?>
|
||||||
</aside><!-- #secondary -->
|
</aside><!-- #secondary -->
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
get_header(); ?>
|
get_header(); ?>
|
||||||
|
|
||||||
<div 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">
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
while ( have_posts() ) : the_post();
|
while ( have_posts() ) : the_post();
|
||||||
|
|
Reference in New Issue