Make WordPress Core

Changeset 22206


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

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

Location:
trunk/wp-content/themes/twentytwelve
Files:
3 edited

Legend:

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

    r22203 r22206  
    1717            <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark">
    1818                <h1><?php the_title(); ?></h1>
    19                 <h2><time class="entry-date" datetime="<?php echo esc_attr( get_the_date( 'c' ) ); ?>" pubdate><?php echo get_the_date(); ?></time></h2>
     19                <h2><time class="entry-date" datetime="<?php echo esc_attr( get_the_date( 'c' ) ); ?>"><?php echo get_the_date(); ?></time></h2>
    2020            </a>
    2121            <?php if ( comments_open() ) : ?>
  • 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() ),
  • trunk/wp-content/themes/twentytwelve/image.php

    r22048 r22206  
    2424                            <?php
    2525                                $metadata = wp_get_attachment_metadata();
    26                                 printf( __( '<span class="meta-prep meta-prep-entry-date">Published </span> <span class="entry-date"><time class="entry-date" datetime="%1$s" pubdate>%2$s</time></span> at <a href="%3$s" title="Link to full-size image">%4$s &times; %5$s</a> in <a href="%6$s" title="Return to %7$s" rel="gallery">%8$s</a>.', 'twentytwelve' ),
     26                                printf( __( '<span class="meta-prep meta-prep-entry-date">Published </span> <span class="entry-date"><time class="entry-date" datetime="%1$s">%2$s</time></span> at <a href="%3$s" title="Link to full-size image">%4$s &times; %5$s</a> in <a href="%6$s" title="Return to %7$s" rel="gallery">%8$s</a>.', 'twentytwelve' ),
    2727                                    esc_attr( get_the_date( 'c' ) ),
    2828                                    esc_html( get_the_date() ),
Note: See TracChangeset for help on using the changeset viewer.