Make WordPress Core


Ignore:
Timestamp:
10/11/2012 11:39:24 PM (13 years ago)
Author:
lancewillett
Message:

Twenty Twelve: remove invalid pubdate value from time elements. See #22095.

File:
1 edited

Legend:

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

    r22201 r22206  
    289289                        ( $comment->user_id === $post->post_author ) ? '<span> ' . __( 'Post author', 'twentytwelve' ) . '</span>' : ''
    290290                    );
    291                     printf( '<a href="%1$s"><time pubdate datetime="%2$s">%3$s</time></a>',
     291                    printf( '<a href="%1$s"><time datetime="%2$s">%3$s</time></a>',
    292292                        esc_url( get_comment_link( $comment->comment_ID ) ),
    293293                        get_comment_time( 'c' ),
     
    332332    $tag_list = get_the_tag_list( '', __( ', ', 'twentytwelve' ) );
    333333
    334     $date = sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s" pubdate>%4$s</time></a>',
     334    $date = sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a>',
    335335        esc_url( get_permalink() ),
    336336        esc_attr( get_the_time() ),
Note: See TracChangeset for help on using the changeset viewer.