Make WordPress Core


Ignore:
Timestamp:
02/21/2012 06:34:36 AM (15 years ago)
Author:
lancewillett
Message:

Twenty Twelve: add ARIA role of "navigation" to the all nav elements. Props iandstewart, see #19978.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentytwelve/comments.php

    r19842 r19960  
    3737
    3838                <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
    39                 <nav id="comment-nav-above">
     39                <nav id="comment-nav-above" role="navigation">
    4040                        <h1 class="assistive-text section-heading"><?php _e( 'Comment navigation', 'twentytwelve' ); ?></h1>
    4141                        <div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'twentytwelve' ) ); ?></div>
    … …  
    4949
    5050                <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
    51                 <nav id="comment-nav-below">
     51                <nav id="comment-nav-below" role="navigation">
    5252                        <h1 class="assistive-text section-heading"><?php _e( 'Comment navigation', 'twentytwelve' ); ?></h1>
    5353                        <div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'twentytwelve' ) ); ?></div>
Note: See TracChangeset for help on using the changeset viewer.