WordPress.org

Make WordPress Core

Ticket #19093: timetodata.diff

File timetodata.diff, 2.7 KB (added by hd-J, 3 years ago)

Replace <time> by <data>

  • wp-content/themes/twentyeleven/content-image.php

     
    3131                <footer class="entry-meta"> 
    3232                        <div class="entry-meta"> 
    3333                                <?php 
    34                                         printf( __( '<a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></a><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s" rel="author">%6$s</a></span></span>', 'twentyeleven' ), 
     34                                        printf( __( '<a href="%1$s" rel="bookmark"><data class="entry-date" itemprop="datePublished" value="%2$s">%3$s</data></a><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s" rel="author">%6$s</a></span></span>', 'twentyeleven' ), 
    3535                                                esc_url( get_permalink() ), 
    3636                                                get_the_date( 'c' ), 
    3737                                                get_the_date(), 
  • wp-content/themes/twentyeleven/functions.php

     
    519519                                                /* translators: 1: comment author, 2: date and time */ 
    520520                                                printf( __( '%1$s on %2$s <span class="says">said:</span>', 'twentyeleven' ), 
    521521                                                        sprintf( '<span class="fn">%s</span>', get_comment_author_link() ), 
    522                                                         sprintf( '<a href="%1$s"><time pubdate datetime="%2$s">%3$s</time></a>', 
     522                                                        sprintf( '<a href="%1$s"><data itemprop="datePublished" value="%2$s">%3$s</data></a>', 
    523523                                                                esc_url( get_comment_link( $comment->comment_ID ) ), 
    524524                                                                get_comment_time( 'c' ), 
    525525                                                                /* translators: 1: date, 2: time */ 
     
    559559 * @since Twenty Eleven 1.0 
    560560 */ 
    561561function twentyeleven_posted_on() { 
    562         printf( __( '<span class="sep">Posted on </span><a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s" pubdate>%4$s</time></a><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span></span>', 'twentyeleven' ), 
     562        printf( __( '<span class="sep">Posted on </span><a href="%1$s" title="%2$s" rel="bookmark"><data class="entry-date" itemprop="datePublished" value="%3$s">%4$s</data></a><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span></span>', 'twentyeleven' ), 
    563563                esc_url( get_permalink() ), 
    564564                esc_attr( get_the_time() ), 
    565565                esc_attr( get_the_date( 'c' ) ),