WordPress.org

Make WordPress Core

Changeset 19960


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

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

Location:
trunk/wp-content/themes/twentytwelve
Files:
3 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>
  • trunk/wp-content/themes/twentytwelve/functions.php

    r19915 r19960  
    226226
    227227    if ( $wp_query->max_num_pages > 1 ) : ?>
    228         <nav id="<?php echo $nav_id; ?>">
     228        <nav id="<?php echo $nav_id; ?>" role="navigation">
    229229            <h3 class="assistive-text"><?php _e( 'Post navigation', 'twentytwelve' ); ?></h3>
    230230            <div class="nav-previous alignleft"><?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older posts', 'twentytwelve' ) ); ?></div>
  • trunk/wp-content/themes/twentytwelve/image.php

    r19842 r19960  
    3636                        </div><!-- .entry-meta -->
    3737
    38                         <nav id="image-navigation">
     38                        <nav id="image-navigation" role="navigation">
    3939                            <span class="previous-image"><?php previous_image_link( false, __( '&larr; Previous', 'twentytwelve' ) ); ?></span>
    4040                            <span class="next-image"><?php next_image_link( false, __( 'Next &rarr;', 'twentytwelve' ) ); ?></span>
Note: See TracChangeset for help on using the changeset viewer.