General: Remove role="navigation" from nav elements.
Role="navigation" was required for assistive technology to recognize HTML5 element's native ARIA roles while HTML5 and ARIA were being introduced. With the deprecation of IE11, the role attribute is only required when mapping elements that don't have native role. Props costdev, mukesh27. Fixes #54054. Built from https://develop.svn.wordpress.org/trunk@51967 git-svn-id: http://core.svn.wordpress.org/trunk@51556 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
78e5b8481c
commit
a3a61c5a3e
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -144,7 +144,7 @@ if ( is_singular() && get_option( 'thread_comments' ) ) {
|
|||
<?php get_search_form(); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<nav id="access" role="navigation">
|
||||
<nav id="access">
|
||||
<h3 class="assistive-text"><?php _e( 'Main menu', 'twentyeleven' ); ?></h3>
|
||||
<?php
|
||||
/*
|
||||
|
|
|
@ -19,7 +19,7 @@ if ( ! function_exists( 'twentyfifteen_comment_nav' ) ) :
|
|||
// Are there comments to navigate through?
|
||||
if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) :
|
||||
?>
|
||||
<nav class="navigation comment-navigation" role="navigation">
|
||||
<nav class="navigation comment-navigation">
|
||||
<h2 class="screen-reader-text"><?php _e( 'Comment navigation', 'twentyfifteen' ); ?></h2>
|
||||
<div class="nav-links">
|
||||
<?php
|
||||
|
|
|
@ -11,7 +11,7 @@ if ( has_nav_menu( 'primary' ) || has_nav_menu( 'social' ) || is_active_sidebar(
|
|||
<div id="secondary" class="secondary">
|
||||
|
||||
<?php if ( has_nav_menu( 'primary' ) ) : ?>
|
||||
<nav id="site-navigation" class="main-navigation" role="navigation">
|
||||
<nav id="site-navigation" class="main-navigation">
|
||||
<?php
|
||||
// Primary navigation menu.
|
||||
wp_nav_menu(
|
||||
|
@ -25,7 +25,7 @@ if ( has_nav_menu( 'primary' ) || has_nav_menu( 'social' ) || is_active_sidebar(
|
|||
<?php endif; ?>
|
||||
|
||||
<?php if ( has_nav_menu( 'social' ) ) : ?>
|
||||
<nav id="social-navigation" class="social-navigation" role="navigation">
|
||||
<nav id="social-navigation" class="social-navigation">
|
||||
<?php
|
||||
// Social links navigation menu.
|
||||
wp_nav_menu(
|
||||
|
|
|
@ -46,7 +46,7 @@ if ( post_password_required() ) {
|
|||
</h2>
|
||||
|
||||
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
|
||||
<nav id="comment-nav-above" class="navigation comment-navigation" role="navigation">
|
||||
<nav id="comment-nav-above" class="navigation comment-navigation">
|
||||
<h1 class="screen-reader-text"><?php _e( 'Comment navigation', 'twentyfourteen' ); ?></h1>
|
||||
<div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentyfourteen' ) ); ?></div>
|
||||
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'twentyfourteen' ) ); ?></div>
|
||||
|
@ -66,7 +66,7 @@ if ( post_password_required() ) {
|
|||
</ol><!-- .comment-list -->
|
||||
|
||||
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
|
||||
<nav id="comment-nav-below" class="navigation comment-navigation" role="navigation">
|
||||
<nav id="comment-nav-below" class="navigation comment-navigation">
|
||||
<h1 class="screen-reader-text"><?php _e( 'Comment navigation', 'twentyfourteen' ); ?></h1>
|
||||
<div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentyfourteen' ) ); ?></div>
|
||||
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'twentyfourteen' ) ); ?></div>
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
<a href="#search-container" class="screen-reader-text" aria-expanded="false" aria-controls="search-container"><?php _e( 'Search', 'twentyfourteen' ); ?></a>
|
||||
</div>
|
||||
|
||||
<nav id="primary-navigation" class="site-navigation primary-navigation" role="navigation">
|
||||
<nav id="primary-navigation" class="site-navigation primary-navigation">
|
||||
<button class="menu-toggle"><?php _e( 'Primary Menu', 'twentyfourteen' ); ?></button>
|
||||
<a class="screen-reader-text skip-link" href="#content"><?php _e( 'Skip to content', 'twentyfourteen' ); ?></a>
|
||||
<?php
|
||||
|
|
|
@ -56,7 +56,7 @@ if ( ! function_exists( 'twentyfourteen_paging_nav' ) ) :
|
|||
if ( $links ) :
|
||||
|
||||
?>
|
||||
<nav class="navigation paging-navigation" role="navigation">
|
||||
<nav class="navigation paging-navigation">
|
||||
<h1 class="screen-reader-text"><?php _e( 'Posts navigation', 'twentyfourteen' ); ?></h1>
|
||||
<div class="pagination loop-pagination">
|
||||
<?php echo $links; ?>
|
||||
|
@ -83,7 +83,7 @@ if ( ! function_exists( 'twentyfourteen_post_nav' ) ) :
|
|||
}
|
||||
|
||||
?>
|
||||
<nav class="navigation post-navigation" role="navigation">
|
||||
<nav class="navigation post-navigation">
|
||||
<h1 class="screen-reader-text"><?php _e( 'Post navigation', 'twentyfourteen' ); ?></h1>
|
||||
<div class="nav-links">
|
||||
<?php
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
<?php endif; ?>
|
||||
|
||||
<?php if ( has_nav_menu( 'secondary' ) ) : ?>
|
||||
<nav role="navigation" class="navigation site-navigation secondary-navigation">
|
||||
<nav class="navigation site-navigation secondary-navigation">
|
||||
<?php wp_nav_menu( array( 'theme_location' => 'secondary' ) ); ?>
|
||||
</nav>
|
||||
<?php endif; ?>
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
if ( has_nav_menu( 'social' ) ) :
|
||||
?>
|
||||
<nav class="social-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Footer Social Links Menu', 'twentyseventeen' ); ?>">
|
||||
<nav class="social-navigation" aria-label="<?php esc_attr_e( 'Footer Social Links Menu', 'twentyseventeen' ); ?>">
|
||||
<?php
|
||||
wp_nav_menu(
|
||||
array(
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
*/
|
||||
|
||||
?>
|
||||
<nav id="site-navigation" class="main-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Top Menu', 'twentyseventeen' ); ?>">
|
||||
<nav id="site-navigation" class="main-navigation" aria-label="<?php esc_attr_e( 'Top Menu', 'twentyseventeen' ); ?>">
|
||||
<button class="menu-toggle" aria-controls="top-menu" aria-expanded="false">
|
||||
<?php
|
||||
echo twentyseventeen_get_svg( array( 'icon' => 'bars' ) );
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
<footer id="colophon" class="site-footer" role="contentinfo">
|
||||
<?php if ( has_nav_menu( 'primary' ) ) : ?>
|
||||
<nav class="main-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Footer Primary Menu', 'twentysixteen' ); ?>">
|
||||
<nav class="main-navigation" aria-label="<?php esc_attr_e( 'Footer Primary Menu', 'twentysixteen' ); ?>">
|
||||
<?php
|
||||
wp_nav_menu(
|
||||
array(
|
||||
|
@ -27,7 +27,7 @@
|
|||
<?php endif; ?>
|
||||
|
||||
<?php if ( has_nav_menu( 'social' ) ) : ?>
|
||||
<nav class="social-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Footer Social Links Menu', 'twentysixteen' ); ?>">
|
||||
<nav class="social-navigation" aria-label="<?php esc_attr_e( 'Footer Social Links Menu', 'twentysixteen' ); ?>">
|
||||
<?php
|
||||
wp_nav_menu(
|
||||
array(
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
|
||||
<div id="site-header-menu" class="site-header-menu">
|
||||
<?php if ( has_nav_menu( 'primary' ) ) : ?>
|
||||
<nav id="site-navigation" class="main-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Primary Menu', 'twentysixteen' ); ?>">
|
||||
<nav id="site-navigation" class="main-navigation" aria-label="<?php esc_attr_e( 'Primary Menu', 'twentysixteen' ); ?>">
|
||||
<?php
|
||||
wp_nav_menu(
|
||||
array(
|
||||
|
@ -64,7 +64,7 @@
|
|||
<?php endif; ?>
|
||||
|
||||
<?php if ( has_nav_menu( 'social' ) ) : ?>
|
||||
<nav id="social-navigation" class="social-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Social Links Menu', 'twentysixteen' ); ?>">
|
||||
<nav id="social-navigation" class="social-navigation" aria-label="<?php esc_attr_e( 'Social Links Menu', 'twentysixteen' ); ?>">
|
||||
<?php
|
||||
wp_nav_menu(
|
||||
array(
|
||||
|
|
|
@ -56,7 +56,7 @@ if ( post_password_required() ) {
|
|||
// Are there comments to navigate through?
|
||||
if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) :
|
||||
?>
|
||||
<nav class="navigation comment-navigation" role="navigation">
|
||||
<nav class="navigation comment-navigation">
|
||||
<h1 class="screen-reader-text section-heading"><?php _e( 'Comment navigation', 'twentythirteen' ); ?></h1>
|
||||
<div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentythirteen' ) ); ?></div>
|
||||
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'twentythirteen' ) ); ?></div>
|
||||
|
|
|
@ -425,7 +425,7 @@ if ( ! function_exists( 'twentythirteen_paging_nav' ) ) :
|
|||
return;
|
||||
}
|
||||
?>
|
||||
<nav class="navigation paging-navigation" role="navigation">
|
||||
<nav class="navigation paging-navigation">
|
||||
<h1 class="screen-reader-text"><?php _e( 'Posts navigation', 'twentythirteen' ); ?></h1>
|
||||
<div class="nav-links">
|
||||
|
||||
|
@ -460,7 +460,7 @@ if ( ! function_exists( 'twentythirteen_post_nav' ) ) :
|
|||
return;
|
||||
}
|
||||
?>
|
||||
<nav class="navigation post-navigation" role="navigation">
|
||||
<nav class="navigation post-navigation">
|
||||
<h1 class="screen-reader-text"><?php _e( 'Post navigation', 'twentythirteen' ); ?></h1>
|
||||
<div class="nav-links">
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
</a>
|
||||
|
||||
<div id="navbar" class="navbar">
|
||||
<nav id="site-navigation" class="navigation main-navigation" role="navigation">
|
||||
<nav id="site-navigation" class="navigation main-navigation">
|
||||
<button class="menu-toggle"><?php _e( 'Menu', 'twentythirteen' ); ?></button>
|
||||
<a class="screen-reader-text skip-link" href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentythirteen' ); ?>"><?php _e( 'Skip to content', 'twentythirteen' ); ?></a>
|
||||
<?php
|
||||
|
|
|
@ -59,7 +59,7 @@ get_header(); ?>
|
|||
</header><!-- .entry-header -->
|
||||
|
||||
<div class="entry-content">
|
||||
<nav id="image-navigation" class="navigation image-navigation" role="navigation">
|
||||
<nav id="image-navigation" class="navigation image-navigation">
|
||||
<span class="nav-previous"><?php previous_image_link( false, __( '<span class="meta-nav">←</span> Previous', 'twentythirteen' ) ); ?></span>
|
||||
<span class="nav-next"><?php next_image_link( false, __( 'Next <span class="meta-nav">→</span>', 'twentythirteen' ) ); ?></span>
|
||||
</nav><!-- #image-navigation -->
|
||||
|
|
|
@ -58,7 +58,7 @@ if ( post_password_required() ) {
|
|||
</ol><!-- .commentlist -->
|
||||
|
||||
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
|
||||
<nav id="comment-nav-below" class="navigation" role="navigation">
|
||||
<nav id="comment-nav-below" class="navigation">
|
||||
<h1 class="assistive-text section-heading"><?php _e( 'Comment navigation', 'twentytwelve' ); ?></h1>
|
||||
<div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentytwelve' ) ); ?></div>
|
||||
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'twentytwelve' ) ); ?></div>
|
||||
|
|
|
@ -394,7 +394,7 @@ if ( ! function_exists( 'twentytwelve_content_nav' ) ) :
|
|||
global $wp_query;
|
||||
|
||||
if ( $wp_query->max_num_pages > 1 ) : ?>
|
||||
<nav id="<?php echo esc_attr( $html_id ); ?>" class="navigation" role="navigation">
|
||||
<nav id="<?php echo esc_attr( $html_id ); ?>" class="navigation">
|
||||
<h3 class="assistive-text"><?php _e( 'Post navigation', 'twentytwelve' ); ?></h3>
|
||||
<div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentytwelve' ) ); ?></div>
|
||||
<div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?></div>
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
|
||||
</hgroup>
|
||||
|
||||
<nav id="site-navigation" class="main-navigation" role="navigation">
|
||||
<nav id="site-navigation" class="main-navigation">
|
||||
<button class="menu-toggle"><?php _e( 'Menu', 'twentytwelve' ); ?></button>
|
||||
<a class="assistive-text" href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentytwelve' ); ?>"><?php _e( 'Skip to content', 'twentytwelve' ); ?></a>
|
||||
<?php
|
||||
|
|
|
@ -42,7 +42,7 @@ get_header(); ?>
|
|||
<?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
|
||||
</footer><!-- .entry-meta -->
|
||||
|
||||
<nav id="image-navigation" class="navigation" role="navigation">
|
||||
<nav id="image-navigation" class="navigation">
|
||||
<span class="previous-image"><?php previous_image_link( false, __( '← Previous', 'twentytwelve' ) ); ?></span>
|
||||
<span class="next-image"><?php next_image_link( false, __( 'Next →', 'twentytwelve' ) ); ?></span>
|
||||
</nav><!-- #image-navigation -->
|
||||
|
|
|
@ -85,7 +85,7 @@
|
|||
if ( has_nav_menu( 'primary' ) || ! has_nav_menu( 'expanded' ) ) {
|
||||
?>
|
||||
|
||||
<nav class="primary-menu-wrapper" aria-label="<?php echo esc_attr_x( 'Horizontal', 'menu', 'twentytwenty' ); ?>" role="navigation">
|
||||
<nav class="primary-menu-wrapper" aria-label="<?php echo esc_attr_x( 'Horizontal', 'menu', 'twentytwenty' ); ?>">
|
||||
|
||||
<ul class="primary-menu reset-list-style">
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ if ( $has_footer_menu || $has_social_menu || $has_sidebar_1 || $has_sidebar_2 )
|
|||
<div class="footer-top<?php echo $footer_top_classes; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- static output ?>">
|
||||
<?php if ( $has_footer_menu ) { ?>
|
||||
|
||||
<nav aria-label="<?php esc_attr_e( 'Footer', 'twentytwenty' ); ?>" role="navigation" class="footer-menu-wrapper">
|
||||
<nav aria-label="<?php esc_attr_e( 'Footer', 'twentytwenty' ); ?>" class="footer-menu-wrapper">
|
||||
|
||||
<ul class="footer-menu reset-list-style">
|
||||
<?php
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
|
||||
?>
|
||||
|
||||
<nav class="expanded-menu<?php echo esc_attr( $expanded_nav_classes ); ?>" aria-label="<?php echo esc_attr_x( 'Expanded', 'menu', 'twentytwenty' ); ?>" role="navigation">
|
||||
<nav class="expanded-menu<?php echo esc_attr( $expanded_nav_classes ); ?>" aria-label="<?php echo esc_attr_x( 'Expanded', 'menu', 'twentytwenty' ); ?>">
|
||||
|
||||
<ul class="modal-menu reset-list-style">
|
||||
<?php
|
||||
|
@ -70,7 +70,7 @@
|
|||
if ( 'expanded' !== $mobile_menu_location ) {
|
||||
?>
|
||||
|
||||
<nav class="mobile-menu" aria-label="<?php echo esc_attr_x( 'Mobile', 'menu', 'twentytwenty' ); ?>" role="navigation">
|
||||
<nav class="mobile-menu" aria-label="<?php echo esc_attr_x( 'Mobile', 'menu', 'twentytwenty' ); ?>">
|
||||
|
||||
<ul class="modal-menu reset-list-style">
|
||||
|
||||
|
@ -114,7 +114,7 @@
|
|||
|
||||
<?php if ( has_nav_menu( 'social' ) ) { ?>
|
||||
|
||||
<nav aria-label="<?php esc_attr_e( 'Expanded Social links', 'twentytwenty' ); ?>" role="navigation">
|
||||
<nav aria-label="<?php esc_attr_e( 'Expanded Social links', 'twentytwenty' ); ?>">
|
||||
<ul class="social-menu reset-list-style social-icons fill-children-current-color">
|
||||
|
||||
<?php
|
||||
|
|
|
@ -22,7 +22,7 @@ if ( $next_post || $prev_post ) {
|
|||
|
||||
?>
|
||||
|
||||
<nav class="pagination-single section-inner<?php echo esc_attr( $pagination_classes ); ?>" aria-label="<?php esc_attr_e( 'Post', 'twentytwenty' ); ?>" role="navigation">
|
||||
<nav class="pagination-single section-inner<?php echo esc_attr( $pagination_classes ); ?>" aria-label="<?php esc_attr_e( 'Post', 'twentytwenty' ); ?>">
|
||||
|
||||
<hr class="styled-separator is-style-wide" aria-hidden="true" />
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
?>
|
||||
|
||||
<?php if ( has_nav_menu( 'primary' ) ) : ?>
|
||||
<nav id="site-navigation" class="primary-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Primary menu', 'twentytwentyone' ); ?>">
|
||||
<nav id="site-navigation" class="primary-navigation" aria-label="<?php esc_attr_e( 'Primary menu', 'twentytwentyone' ); ?>">
|
||||
<div class="menu-button-container">
|
||||
<button id="primary-mobile-menu" class="button" aria-controls="primary-menu-list" aria-expanded="false">
|
||||
<span class="dropdown-icon open"><?php esc_html_e( 'Menu', 'twentytwentyone' ); ?>
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,2 +1,2 @@
|
|||
/*! This file is auto-generated */
|
||||
window.addComment=function(v){var I,C,h,E=v.document,b={commentReplyClass:"comment-reply-link",commentReplyTitleId:"reply-title",cancelReplyId:"cancel-comment-reply-link",commentFormId:"commentform",temporaryFormId:"wp-temp-form-div",parentIdFieldId:"comment_parent",postIdFieldId:"comment_post_ID"},e=v.MutationObserver||v.WebKitMutationObserver||v.MozMutationObserver,r="querySelector"in E&&"addEventListener"in v,n=!!E.documentElement.dataset;function t(){d(),e&&new e(o).observe(E.body,{childList:!0,subtree:!0})}function d(e){if(r&&(I=g(b.cancelReplyId),C=g(b.commentFormId),I)){I.addEventListener("touchstart",l),I.addEventListener("click",l);var t=function(e){if((e.metaKey||e.ctrlKey)&&13===e.keyCode)return C.removeEventListener("keydown",t),e.preventDefault(),C.submit.click(),!1};C&&C.addEventListener("keydown",t);for(var n,d=function(e){var t=b.commentReplyClass;e&&e.childNodes||(e=E);t=E.getElementsByClassName?e.getElementsByClassName(t):e.querySelectorAll("."+t);return t}(e),o=0,i=d.length;o<i;o++)(n=d[o]).addEventListener("touchstart",a),n.addEventListener("click",a)}}function l(e){var t,n,d=g(b.temporaryFormId);d&&h&&(g(b.parentIdFieldId).value="0",t=d.textContent,d.parentNode.replaceChild(h,d),this.style.display="none",n=(d=(n=g(b.commentReplyTitleId))&&n.firstChild)&&d.nextSibling,d&&d.nodeType===Node.TEXT_NODE&&t&&(n&&"A"===n.nodeName&&n.id!==b.cancelReplyId&&(n.style.display=""),d.textContent=t),e.preventDefault())}function a(e){var t=g(b.commentReplyTitleId),n=t&&t.firstChild.textContent,d=this,o=m(d,"belowelement"),i=m(d,"commentid"),r=m(d,"respondelement"),t=m(d,"postid"),n=m(d,"replyto")||n;o&&i&&r&&t&&!1===v.addComment.moveForm(o,i,r,t,n)&&e.preventDefault()}function o(e){for(var t=e.length;t--;)if(e[t].addedNodes.length)return void d()}function m(e,t){return n?e.dataset[t]:e.getAttribute("data-"+t)}function g(e){return E.getElementById(e)}return r&&"loading"!==E.readyState?t():r&&v.addEventListener("DOMContentLoaded",t,!1),{init:d,moveForm:function(e,t,n,d,o){var i=g(e);h=g(n);var r,l,a,m,c,s=g(b.parentIdFieldId),y=g(b.postIdFieldId),p=(c=g(b.commentReplyTitleId))&&c.firstChild,u=p&&p.nextSibling;if(i&&h&&s){void 0===o&&(o=p&&p.textContent),m=h,e=b.temporaryFormId,n=g(e),c=(c=g(b.commentReplyTitleId))?c.firstChild.textContent:"",n||((n=E.createElement("div")).id=e,n.style.display="none",n.textContent=c,m.parentNode.insertBefore(n,m)),d&&y&&(y.value=d),s.value=t,I.style.display="",i.parentNode.insertBefore(h,i.nextSibling),p&&p.nodeType===Node.TEXT_NODE&&(u&&"A"===u.nodeName&&u.id!==b.cancelReplyId&&(u.style.display="none"),p.textContent=o),I.onclick=function(){return!1};try{for(var f=0;f<C.elements.length;f++)if(r=C.elements[f],l=!1,"getComputedStyle"in v?a=v.getComputedStyle(r):E.documentElement.currentStyle&&(a=r.currentStyle),(r.offsetWidth<=0&&r.offsetHeight<=0||"hidden"===a.visibility)&&(l=!0),"hidden"!==r.type&&!r.disabled&&!l){r.focus();break}}catch(e){}return!1}}}}(window);
|
||||
window.addComment=function(v){var I,C,h,E=v.document,b={commentReplyClass:"comment-reply-link",commentReplyTitleId:"reply-title",cancelReplyId:"cancel-comment-reply-link",commentFormId:"commentform",temporaryFormId:"wp-temp-form-div",parentIdFieldId:"comment_parent",postIdFieldId:"comment_post_ID"},e=v.MutationObserver||v.WebKitMutationObserver||v.MozMutationObserver,r="querySelector"in E&&"addEventListener"in v,n=!!E.documentElement.dataset;function t(){d(),e&&new e(o).observe(E.body,{childList:!0,subtree:!0})}function d(e){if(r&&(I=g(b.cancelReplyId),C=g(b.commentFormId),I)){I.addEventListener("touchstart",l),I.addEventListener("click",l);function t(e){if((e.metaKey||e.ctrlKey)&&13===e.keyCode)return C.removeEventListener("keydown",t),e.preventDefault(),C.submit.click(),!1}C&&C.addEventListener("keydown",t);for(var n,d=function(e){var t=b.commentReplyClass;e&&e.childNodes||(e=E);t=E.getElementsByClassName?e.getElementsByClassName(t):e.querySelectorAll("."+t);return t}(e),o=0,i=d.length;o<i;o++)(n=d[o]).addEventListener("touchstart",a),n.addEventListener("click",a)}}function l(e){var t,n,d=g(b.temporaryFormId);d&&h&&(g(b.parentIdFieldId).value="0",t=d.textContent,d.parentNode.replaceChild(h,d),this.style.display="none",n=(d=(n=g(b.commentReplyTitleId))&&n.firstChild)&&d.nextSibling,d&&d.nodeType===Node.TEXT_NODE&&t&&(n&&"A"===n.nodeName&&n.id!==b.cancelReplyId&&(n.style.display=""),d.textContent=t),e.preventDefault())}function a(e){var t=g(b.commentReplyTitleId),n=t&&t.firstChild.textContent,d=this,o=m(d,"belowelement"),i=m(d,"commentid"),r=m(d,"respondelement"),t=m(d,"postid"),n=m(d,"replyto")||n;o&&i&&r&&t&&!1===v.addComment.moveForm(o,i,r,t,n)&&e.preventDefault()}function o(e){for(var t=e.length;t--;)if(e[t].addedNodes.length)return void d()}function m(e,t){return n?e.dataset[t]:e.getAttribute("data-"+t)}function g(e){return E.getElementById(e)}return r&&"loading"!==E.readyState?t():r&&v.addEventListener("DOMContentLoaded",t,!1),{init:d,moveForm:function(e,t,n,d,o){var i=g(e);h=g(n);var r,l,a,m,c,s=g(b.parentIdFieldId),y=g(b.postIdFieldId),p=(c=g(b.commentReplyTitleId))&&c.firstChild,u=p&&p.nextSibling;if(i&&h&&s){void 0===o&&(o=p&&p.textContent),m=h,e=b.temporaryFormId,n=g(e),c=(c=g(b.commentReplyTitleId))?c.firstChild.textContent:"",n||((n=E.createElement("div")).id=e,n.style.display="none",n.textContent=c,m.parentNode.insertBefore(n,m)),d&&y&&(y.value=d),s.value=t,I.style.display="",i.parentNode.insertBefore(h,i.nextSibling),p&&p.nodeType===Node.TEXT_NODE&&(u&&"A"===u.nodeName&&u.id!==b.cancelReplyId&&(u.style.display="none"),p.textContent=o),I.onclick=function(){return!1};try{for(var f=0;f<C.elements.length;f++)if(r=C.elements[f],l=!1,"getComputedStyle"in v?a=v.getComputedStyle(r):E.documentElement.currentStyle&&(a=r.currentStyle),(r.offsetWidth<=0&&r.offsetHeight<=0||"hidden"===a.visibility)&&(l=!0),"hidden"!==r.type&&!r.disabled&&!l){r.focus();break}}catch(e){}return!1}}}}(window);
|
|
@ -1,2 +1,2 @@
|
|||
/*! This file is auto-generated */
|
||||
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):jQuery&&!jQuery.fn.hoverIntent&&e(jQuery)}(function(i){"use strict";function d(e){u=e.pageX,r=e.pageY}var u,r,v={interval:100,sensitivity:6,timeout:0},a=0,p=function(e,t,n,o){if(Math.sqrt((n.pX-u)*(n.pX-u)+(n.pY-r)*(n.pY-r))<o.sensitivity)return t.off(n.event,d),delete n.timeoutId,n.isActive=!0,e.pageX=u,e.pageY=r,delete n.pX,delete n.pY,o.over.apply(t[0],[e]);n.pX=u,n.pY=r,n.timeoutId=setTimeout(function(){p(e,t,n,o)},o.interval)};i.fn.hoverIntent=function(e,t,n){var o=a++,s=i.extend({},v);i.isPlainObject(e)?(s=i.extend(s,e),i.isFunction(s.out)||(s.out=s.over)):s=i.isFunction(t)?i.extend(s,{over:e,out:t,selector:n}):i.extend(s,{over:e,out:e,selector:t});t=function(e){var u=i.extend({},e),r=i(this),t=r.data("hoverIntent");t||r.data("hoverIntent",t={});var v=t[o];v||(t[o]=v={id:o}),v.timeoutId&&(v.timeoutId=clearTimeout(v.timeoutId));t=v.event="mousemove.hoverIntent.hoverIntent"+o;"mouseenter"===e.type?v.isActive||(v.pX=u.pageX,v.pY=u.pageY,r.off(t,d).on(t,d),v.timeoutId=setTimeout(function(){p(u,r,v,s)},s.interval)):v.isActive&&(r.off(t,d),v.timeoutId=setTimeout(function(){var e,t,n,o,i;e=u,t=r,n=v,o=s.out,(i=t.data("hoverIntent"))&&delete i[n.id],o.apply(t[0],[e])},s.timeout))};return this.on({"mouseenter.hoverIntent":t,"mouseleave.hoverIntent":t},s.selector)}});
|
||||
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):jQuery&&!jQuery.fn.hoverIntent&&e(jQuery)}(function(i){"use strict";var u,r,v={interval:100,sensitivity:6,timeout:0},d=0,a=function(e){u=e.pageX,r=e.pageY},p=function(e,t,n,o){if(Math.sqrt((n.pX-u)*(n.pX-u)+(n.pY-r)*(n.pY-r))<o.sensitivity)return t.off(n.event,a),delete n.timeoutId,n.isActive=!0,e.pageX=u,e.pageY=r,delete n.pX,delete n.pY,o.over.apply(t[0],[e]);n.pX=u,n.pY=r,n.timeoutId=setTimeout(function(){p(e,t,n,o)},o.interval)};i.fn.hoverIntent=function(e,t,n){var o=d++,s=i.extend({},v);i.isPlainObject(e)?(s=i.extend(s,e),i.isFunction(s.out)||(s.out=s.over)):s=i.isFunction(t)?i.extend(s,{over:e,out:t,selector:n}):i.extend(s,{over:e,out:e,selector:t});t=function(e){var u=i.extend({},e),r=i(this),t=r.data("hoverIntent");t||r.data("hoverIntent",t={});var v=t[o];v||(t[o]=v={id:o}),v.timeoutId&&(v.timeoutId=clearTimeout(v.timeoutId));t=v.event="mousemove.hoverIntent.hoverIntent"+o;"mouseenter"===e.type?v.isActive||(v.pX=u.pageX,v.pY=u.pageY,r.off(t,a).on(t,a),v.timeoutId=setTimeout(function(){p(u,r,v,s)},s.interval)):v.isActive&&(r.off(t,a),v.timeoutId=setTimeout(function(){var e,t,n,o,i;e=u,t=r,n=v,o=s.out,(i=t.data("hoverIntent"))&&delete i[n.id],o.apply(t[0],[e])},s.timeout))};return this.on({"mouseenter.hoverIntent":t,"mouseleave.hoverIntent":t},s.selector)}});
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -2899,7 +2899,7 @@ function _navigation_markup( $links, $class = 'posts-navigation', $screen_reader
|
|||
}
|
||||
|
||||
$template = '
|
||||
<nav class="navigation %1$s" role="navigation" aria-label="%4$s">
|
||||
<nav class="navigation %1$s" aria-label="%4$s">
|
||||
<h2 class="screen-reader-text">%2$s</h2>
|
||||
<div class="nav-links">%3$s</div>
|
||||
</nav>';
|
||||
|
@ -2911,7 +2911,7 @@ function _navigation_markup( $links, $class = 'posts-navigation', $screen_reader
|
|||
* class (%1$s), the screen-reader-text value (%2$s), placement of the navigation
|
||||
* links (%3$s), and ARIA label text if screen-reader-text does not fit that (%4$s):
|
||||
*
|
||||
* <nav class="navigation %1$s" role="navigation" aria-label="%4$s">
|
||||
* <nav class="navigation %1$s" aria-label="%4$s">
|
||||
* <h2 class="screen-reader-text">%2$s</h2>
|
||||
* <div class="nav-links">%3$s</div>
|
||||
* </nav>
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.9-alpha-51966';
|
||||
$wp_version = '5.9-alpha-51967';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
|
@ -133,7 +133,7 @@ class WP_Widget_Archives extends WP_Widget {
|
|||
// The title may be filtered: Strip out HTML and make sure the aria-label is never empty.
|
||||
$title = trim( strip_tags( $title ) );
|
||||
$aria_label = $title ? $title : $default_title;
|
||||
echo '<nav role="navigation" aria-label="' . esc_attr( $aria_label ) . '">';
|
||||
echo '<nav aria-label="' . esc_attr( $aria_label ) . '">';
|
||||
}
|
||||
?>
|
||||
|
||||
|
|
|
@ -120,7 +120,7 @@ class WP_Widget_Categories extends WP_Widget {
|
|||
// The title may be filtered: Strip out HTML and make sure the aria-label is never empty.
|
||||
$title = trim( strip_tags( $title ) );
|
||||
$aria_label = $title ? $title : $default_title;
|
||||
echo '<nav role="navigation" aria-label="' . esc_attr( $aria_label ) . '">';
|
||||
echo '<nav aria-label="' . esc_attr( $aria_label ) . '">';
|
||||
}
|
||||
?>
|
||||
|
||||
|
|
|
@ -64,7 +64,7 @@ class WP_Widget_Meta extends WP_Widget {
|
|||
// The title may be filtered: Strip out HTML and make sure the aria-label is never empty.
|
||||
$title = trim( strip_tags( $title ) );
|
||||
$aria_label = $title ? $title : $default_title;
|
||||
echo '<nav role="navigation" aria-label="' . esc_attr( $aria_label ) . '">';
|
||||
echo '<nav aria-label="' . esc_attr( $aria_label ) . '">';
|
||||
}
|
||||
?>
|
||||
|
||||
|
|
|
@ -101,7 +101,7 @@ class WP_Widget_Pages extends WP_Widget {
|
|||
// The title may be filtered: Strip out HTML and make sure the aria-label is never empty.
|
||||
$title = trim( strip_tags( $title ) );
|
||||
$aria_label = $title ? $title : $default_title;
|
||||
echo '<nav role="navigation" aria-label="' . esc_attr( $aria_label ) . '">';
|
||||
echo '<nav aria-label="' . esc_attr( $aria_label ) . '">';
|
||||
}
|
||||
?>
|
||||
|
||||
|
|
|
@ -134,7 +134,7 @@ class WP_Widget_Recent_Comments extends WP_Widget {
|
|||
// The title may be filtered: Strip out HTML and make sure the aria-label is never empty.
|
||||
$title = trim( strip_tags( $title ) );
|
||||
$aria_label = $title ? $title : $default_title;
|
||||
$output .= '<nav role="navigation" aria-label="' . esc_attr( $aria_label ) . '">';
|
||||
$output .= '<nav aria-label="' . esc_attr( $aria_label ) . '">';
|
||||
}
|
||||
|
||||
$output .= '<ul id="' . esc_attr( $recent_comments_id ) . '">';
|
||||
|
|
|
@ -103,7 +103,7 @@ class WP_Widget_Recent_Posts extends WP_Widget {
|
|||
// The title may be filtered: Strip out HTML and make sure the aria-label is never empty.
|
||||
$title = trim( strip_tags( $title ) );
|
||||
$aria_label = $title ? $title : $default_title;
|
||||
echo '<nav role="navigation" aria-label="' . esc_attr( $aria_label ) . '">';
|
||||
echo '<nav aria-label="' . esc_attr( $aria_label ) . '">';
|
||||
}
|
||||
?>
|
||||
|
||||
|
|
|
@ -106,7 +106,7 @@ class WP_Widget_RSS extends WP_Widget {
|
|||
// The title may be filtered: Strip out HTML and make sure the aria-label is never empty.
|
||||
$title = trim( strip_tags( $title ) );
|
||||
$aria_label = $title ? $title : __( 'RSS Feed' );
|
||||
echo '<nav role="navigation" aria-label="' . esc_attr( $aria_label ) . '">';
|
||||
echo '<nav aria-label="' . esc_attr( $aria_label ) . '">';
|
||||
}
|
||||
|
||||
wp_widget_rss_output( $rss, $instance );
|
||||
|
|
|
@ -102,7 +102,7 @@ class WP_Widget_Tag_Cloud extends WP_Widget {
|
|||
// The title may be filtered: Strip out HTML and make sure the aria-label is never empty.
|
||||
$title = trim( strip_tags( $title ) );
|
||||
$aria_label = $title ? $title : $default_title;
|
||||
echo '<nav role="navigation" aria-label="' . esc_attr( $aria_label ) . '">';
|
||||
echo '<nav aria-label="' . esc_attr( $aria_label ) . '">';
|
||||
}
|
||||
|
||||
echo '<div class="tagcloud">';
|
||||
|
|
Loading…
Reference in New Issue