mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-02 05:31:25 +01:00
Bundled Themes: Remove the "role" attribute on HTML elements with a default landmark role.
With IE11 no longer supported, the primary problem with assistive technology support for native HTML5 elements no longer applies. This commit removes the `role` attribute from the following HTML5 elements with default landmark roles, per formerly required role attributes and W3C. Follow-up to [17669], [21261], [23452], [24832], [29892], [38833], [40851], [43842], [46271], [49216]. Props costdev, craigfrancis, joedolson, mukesh27, ryokuhi, sabernhardt. Fixes #54079. Built from https://develop.svn.wordpress.org/trunk@52013 git-svn-id: http://core.svn.wordpress.org/trunk@51604 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e4da863a6f
commit
fcf096f4b9
@ -12,7 +12,7 @@
|
||||
|
||||
</div><!-- #main -->
|
||||
|
||||
<footer id="colophon" role="contentinfo">
|
||||
<footer id="colophon">
|
||||
|
||||
<?php
|
||||
/*
|
||||
|
@ -76,7 +76,7 @@ if ( is_singular() && get_option( 'thread_comments' ) ) {
|
||||
<body <?php body_class(); ?>>
|
||||
<?php wp_body_open(); ?>
|
||||
<div id="page" class="hfeed">
|
||||
<header id="branding" role="banner">
|
||||
<header id="branding">
|
||||
<hgroup>
|
||||
<h1 id="site-title"><span><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></span></h1>
|
||||
<h2 id="site-description"><?php bloginfo( 'description' ); ?></h2>
|
||||
|
@ -10,7 +10,7 @@
|
||||
get_header(); ?>
|
||||
|
||||
<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">
|
||||
<header class="page-header">
|
||||
|
@ -19,7 +19,7 @@
|
||||
get_header(); ?>
|
||||
|
||||
<section id="primary" class="content-area">
|
||||
<main id="main" class="site-main" role="main">
|
||||
<main id="main" class="site-main">
|
||||
|
||||
<?php if ( have_posts() ) : ?>
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
</div><!-- .site-content -->
|
||||
|
||||
<footer id="colophon" class="site-footer" role="contentinfo">
|
||||
<footer id="colophon" class="site-footer">
|
||||
<div class="site-info">
|
||||
<?php
|
||||
/**
|
||||
|
@ -27,7 +27,7 @@
|
||||
<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'twentyfifteen' ); ?></a>
|
||||
|
||||
<div id="sidebar" class="sidebar">
|
||||
<header id="masthead" class="site-header" role="banner">
|
||||
<header id="masthead" class="site-header">
|
||||
<div class="site-branding">
|
||||
<?php
|
||||
twentyfifteen_the_custom_logo();
|
||||
|
@ -10,7 +10,7 @@
|
||||
get_header(); ?>
|
||||
|
||||
<div id="primary" class="content-area">
|
||||
<main id="main" class="site-main" role="main">
|
||||
<main id="main" class="site-main">
|
||||
|
||||
<?php
|
||||
// Start the loop.
|
||||
|
@ -17,7 +17,7 @@
|
||||
get_header(); ?>
|
||||
|
||||
<div id="primary" class="content-area">
|
||||
<main id="main" class="site-main" role="main">
|
||||
<main id="main" class="site-main">
|
||||
|
||||
<?php if ( have_posts() ) : ?>
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
get_header(); ?>
|
||||
|
||||
<div id="primary" class="content-area">
|
||||
<main id="main" class="site-main" role="main">
|
||||
<main id="main" class="site-main">
|
||||
|
||||
<?php
|
||||
// Start the loop.
|
||||
|
@ -10,7 +10,7 @@
|
||||
get_header(); ?>
|
||||
|
||||
<section id="primary" class="content-area">
|
||||
<main id="main" class="site-main" role="main">
|
||||
<main id="main" class="site-main">
|
||||
|
||||
<?php if ( have_posts() ) : ?>
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
get_header(); ?>
|
||||
|
||||
<div id="primary" class="content-area">
|
||||
<main id="main" class="site-main" role="main">
|
||||
<main id="main" class="site-main">
|
||||
|
||||
<?php
|
||||
// Start the loop.
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
</div><!-- #main -->
|
||||
|
||||
<footer id="colophon" class="site-footer" role="contentinfo">
|
||||
<footer id="colophon" class="site-footer">
|
||||
|
||||
<?php get_sidebar( 'footer' ); ?>
|
||||
|
||||
|
@ -41,7 +41,7 @@
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<header id="masthead" class="site-header" role="banner">
|
||||
<header id="masthead" class="site-header">
|
||||
<div class="header-main">
|
||||
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
|
||||
|
||||
<aside class="widget-area" role="complementary" aria-label="<?php esc_attr_e( 'Footer', 'twentynineteen' ); ?>">
|
||||
<aside class="widget-area" aria-label="<?php esc_attr_e( 'Footer', 'twentynineteen' ); ?>">
|
||||
<?php
|
||||
if ( is_active_sidebar( 'sidebar-1' ) ) {
|
||||
?>
|
||||
|
@ -14,7 +14,7 @@ get_header(); ?>
|
||||
|
||||
<div class="wrap">
|
||||
<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">
|
||||
<header class="page-header">
|
||||
|
@ -24,7 +24,7 @@ get_header(); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<div id="primary" class="content-area">
|
||||
<main id="main" class="site-main" role="main">
|
||||
<main id="main" class="site-main">
|
||||
|
||||
<?php
|
||||
if ( have_posts() ) :
|
||||
|
@ -16,7 +16,7 @@
|
||||
|
||||
</div><!-- #content -->
|
||||
|
||||
<footer id="colophon" class="site-footer" role="contentinfo">
|
||||
<footer id="colophon" class="site-footer">
|
||||
<div class="wrap">
|
||||
<?php
|
||||
get_template_part( 'template-parts/footer/footer', 'widgets' );
|
||||
|
@ -15,7 +15,7 @@
|
||||
get_header(); ?>
|
||||
|
||||
<div id="primary" class="content-area">
|
||||
<main id="main" class="site-main" role="main">
|
||||
<main id="main" class="site-main">
|
||||
|
||||
<?php
|
||||
// Show the selected front page content.
|
||||
|
@ -27,7 +27,7 @@
|
||||
<div id="page" class="site">
|
||||
<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'twentyseventeen' ); ?></a>
|
||||
|
||||
<header id="masthead" class="site-header" role="banner">
|
||||
<header id="masthead" class="site-header">
|
||||
|
||||
<?php get_template_part( 'template-parts/header/header', 'image' ); ?>
|
||||
|
||||
|
@ -29,7 +29,7 @@ get_header(); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<div id="primary" class="content-area">
|
||||
<main id="main" class="site-main" role="main">
|
||||
<main id="main" class="site-main">
|
||||
|
||||
<?php
|
||||
if ( have_posts() ) :
|
||||
|
@ -19,7 +19,7 @@ get_header(); ?>
|
||||
|
||||
<div class="wrap">
|
||||
<div id="primary" class="content-area">
|
||||
<main id="main" class="site-main" role="main">
|
||||
<main id="main" class="site-main">
|
||||
|
||||
<?php
|
||||
while ( have_posts() ) :
|
||||
|
@ -28,7 +28,7 @@ get_header(); ?>
|
||||
</header><!-- .page-header -->
|
||||
|
||||
<div id="primary" class="content-area">
|
||||
<main id="main" class="site-main" role="main">
|
||||
<main id="main" class="site-main">
|
||||
|
||||
<?php
|
||||
if ( have_posts() ) :
|
||||
|
@ -15,6 +15,6 @@ if ( ! is_active_sidebar( 'sidebar-1' ) ) {
|
||||
}
|
||||
?>
|
||||
|
||||
<aside id="secondary" class="widget-area" role="complementary" aria-label="<?php esc_attr_e( 'Blog Sidebar', 'twentyseventeen' ); ?>">
|
||||
<aside id="secondary" class="widget-area" aria-label="<?php esc_attr_e( 'Blog Sidebar', 'twentyseventeen' ); ?>">
|
||||
<?php dynamic_sidebar( 'sidebar-1' ); ?>
|
||||
</aside><!-- #secondary -->
|
||||
|
@ -14,7 +14,7 @@ get_header(); ?>
|
||||
|
||||
<div class="wrap">
|
||||
<div id="primary" class="content-area">
|
||||
<main id="main" class="site-main" role="main">
|
||||
<main id="main" class="site-main">
|
||||
|
||||
<?php
|
||||
// Start the Loop.
|
||||
|
@ -15,7 +15,7 @@ if ( is_active_sidebar( 'sidebar-2' ) ||
|
||||
is_active_sidebar( 'sidebar-3' ) ) :
|
||||
?>
|
||||
|
||||
<aside class="widget-area" role="complementary" aria-label="<?php esc_attr_e( 'Footer', 'twentyseventeen' ); ?>">
|
||||
<aside class="widget-area" aria-label="<?php esc_attr_e( 'Footer', 'twentyseventeen' ); ?>">
|
||||
<?php
|
||||
if ( is_active_sidebar( 'sidebar-2' ) ) {
|
||||
?>
|
||||
|
@ -10,7 +10,7 @@
|
||||
get_header(); ?>
|
||||
|
||||
<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">
|
||||
<header class="page-header">
|
||||
|
@ -19,7 +19,7 @@
|
||||
get_header(); ?>
|
||||
|
||||
<div id="primary" class="content-area">
|
||||
<main id="main" class="site-main" role="main">
|
||||
<main id="main" class="site-main">
|
||||
|
||||
<?php if ( have_posts() ) : ?>
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
</div><!-- .site-content -->
|
||||
|
||||
<footer id="colophon" class="site-footer" role="contentinfo">
|
||||
<footer id="colophon" class="site-footer">
|
||||
<?php if ( has_nav_menu( 'primary' ) ) : ?>
|
||||
<nav class="main-navigation" aria-label="<?php esc_attr_e( 'Footer Primary Menu', 'twentysixteen' ); ?>">
|
||||
<?php
|
||||
|
@ -27,7 +27,7 @@
|
||||
<div class="site-inner">
|
||||
<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'twentysixteen' ); ?></a>
|
||||
|
||||
<header id="masthead" class="site-header" role="banner">
|
||||
<header id="masthead" class="site-header">
|
||||
<div class="site-header-main">
|
||||
<div class="site-branding">
|
||||
<?php twentysixteen_the_custom_logo(); ?>
|
||||
|
@ -10,7 +10,7 @@
|
||||
get_header(); ?>
|
||||
|
||||
<div id="primary" class="content-area">
|
||||
<main id="main" class="site-main" role="main">
|
||||
<main id="main" class="site-main">
|
||||
|
||||
<?php
|
||||
// Start the loop.
|
||||
|
@ -17,7 +17,7 @@
|
||||
get_header(); ?>
|
||||
|
||||
<div id="primary" class="content-area">
|
||||
<main id="main" class="site-main" role="main">
|
||||
<main id="main" class="site-main">
|
||||
|
||||
<?php if ( have_posts() ) : ?>
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
get_header(); ?>
|
||||
|
||||
<div id="primary" class="content-area">
|
||||
<main id="main" class="site-main" role="main">
|
||||
<main id="main" class="site-main">
|
||||
<?php
|
||||
// Start the loop.
|
||||
while ( have_posts() ) :
|
||||
|
@ -10,7 +10,7 @@
|
||||
get_header(); ?>
|
||||
|
||||
<section id="primary" class="content-area">
|
||||
<main id="main" class="site-main" role="main">
|
||||
<main id="main" class="site-main">
|
||||
|
||||
<?php if ( have_posts() ) : ?>
|
||||
|
||||
|
@ -13,7 +13,7 @@ if ( ! is_active_sidebar( 'sidebar-2' ) && ! is_active_sidebar( 'sidebar-3' ) )
|
||||
|
||||
// If we get this far, we have widgets. Let's do this.
|
||||
?>
|
||||
<aside id="content-bottom-widgets" class="content-bottom-widgets" role="complementary">
|
||||
<aside id="content-bottom-widgets" class="content-bottom-widgets">
|
||||
<?php if ( is_active_sidebar( 'sidebar-2' ) ) : ?>
|
||||
<div class="widget-area">
|
||||
<?php dynamic_sidebar( 'sidebar-2' ); ?>
|
||||
|
@ -9,7 +9,7 @@
|
||||
?>
|
||||
|
||||
<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
|
||||
<aside id="secondary" class="sidebar widget-area" role="complementary">
|
||||
<aside id="secondary" class="sidebar widget-area">
|
||||
<?php dynamic_sidebar( 'sidebar-1' ); ?>
|
||||
</aside><!-- .sidebar .widget-area -->
|
||||
<?php endif; ?>
|
||||
|
@ -10,7 +10,7 @@
|
||||
get_header(); ?>
|
||||
|
||||
<div id="primary" class="content-area">
|
||||
<main id="main" class="site-main" role="main">
|
||||
<main id="main" class="site-main">
|
||||
<?php
|
||||
// Start the loop.
|
||||
while ( have_posts() ) :
|
||||
|
@ -11,7 +11,7 @@
|
||||
?>
|
||||
|
||||
</div><!-- #main -->
|
||||
<footer id="colophon" class="site-footer" role="contentinfo">
|
||||
<footer id="colophon" class="site-footer">
|
||||
<?php get_sidebar( 'main' ); ?>
|
||||
|
||||
<div class="site-info">
|
||||
|
@ -33,7 +33,7 @@
|
||||
<body <?php body_class(); ?>>
|
||||
<?php wp_body_open(); ?>
|
||||
<div id="page" class="hfeed site">
|
||||
<header id="masthead" class="site-header" role="banner">
|
||||
<header id="masthead" class="site-header">
|
||||
<a class="home-link" href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
|
||||
<h1 class="site-title"><?php bloginfo( 'name' ); ?></h1>
|
||||
<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
|
||||
|
@ -34,7 +34,7 @@
|
||||
<body <?php body_class(); ?>>
|
||||
<?php wp_body_open(); ?>
|
||||
<div id="page" class="hfeed site">
|
||||
<header id="masthead" class="site-header" role="banner">
|
||||
<header id="masthead" class="site-header">
|
||||
<hgroup>
|
||||
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
|
||||
<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
|
||||
|
@ -10,7 +10,7 @@
|
||||
get_header();
|
||||
?>
|
||||
|
||||
<main id="site-content" role="main">
|
||||
<main id="site-content">
|
||||
|
||||
<div class="section-inner thin error404-content">
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
*/
|
||||
|
||||
?>
|
||||
<footer id="site-footer" role="contentinfo" class="header-footer-group">
|
||||
<footer id="site-footer" class="header-footer-group">
|
||||
|
||||
<div class="section-inner">
|
||||
|
||||
|
@ -30,7 +30,7 @@
|
||||
wp_body_open();
|
||||
?>
|
||||
|
||||
<header id="site-header" class="header-footer-group" role="banner">
|
||||
<header id="site-header" class="header-footer-group">
|
||||
|
||||
<div class="header-inner section-inner">
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
get_header();
|
||||
?>
|
||||
|
||||
<main id="site-content" role="main">
|
||||
<main id="site-content">
|
||||
|
||||
<?php
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
get_header();
|
||||
?>
|
||||
|
||||
<main id="site-content" role="main">
|
||||
<main id="site-content">
|
||||
|
||||
<?php
|
||||
|
||||
|
@ -86,7 +86,7 @@ if ( $has_footer_menu || $has_social_menu || $has_sidebar_1 || $has_sidebar_2 )
|
||||
|
||||
<?php if ( $has_sidebar_1 || $has_sidebar_2 ) { ?>
|
||||
|
||||
<aside class="footer-widgets-outer-wrapper" role="complementary">
|
||||
<aside class="footer-widgets-outer-wrapper">
|
||||
|
||||
<div class="footer-widgets-wrapper">
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
get_header();
|
||||
?>
|
||||
|
||||
<main id="site-content" role="main">
|
||||
<main id="site-content">
|
||||
|
||||
<?php
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
||||
|
||||
<?php get_template_part( 'template-parts/footer/footer-widgets' ); ?>
|
||||
|
||||
<footer id="colophon" class="site-footer" role="contentinfo">
|
||||
<footer id="colophon" class="site-footer">
|
||||
|
||||
<?php if ( has_nav_menu( 'footer' ) ) : ?>
|
||||
<nav aria-label="<?php esc_attr_e( 'Secondary menu', 'twentytwentyone' ); ?>" class="footer-navigation">
|
||||
|
@ -29,4 +29,4 @@
|
||||
|
||||
<div id="content" class="site-content">
|
||||
<div id="primary" class="content-area">
|
||||
<main id="main" class="site-main" role="main">
|
||||
<main id="main" class="site-main">
|
||||
|
@ -13,7 +13,7 @@ $wrapper_classes .= ( true === get_theme_mod( 'display_title_and_tagline', true
|
||||
$wrapper_classes .= has_nav_menu( 'primary' ) ? ' has-menu' : '';
|
||||
?>
|
||||
|
||||
<header id="masthead" class="<?php echo esc_attr( $wrapper_classes ); ?>" role="banner">
|
||||
<header id="masthead" class="<?php echo esc_attr( $wrapper_classes ); ?>">
|
||||
|
||||
<?php get_template_part( 'template-parts/header/site-branding' ); ?>
|
||||
<?php get_template_part( 'template-parts/header/site-nav' ); ?>
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.9-alpha-52012';
|
||||
$wp_version = '5.9-alpha-52013';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user