Make WordPress Core


Ignore:
Timestamp:
02/21/2012 06:34:36 AM (13 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/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>
Note: See TracChangeset for help on using the changeset viewer.