forked from mirror/_s
Removed dangling pubdate attributes
The <time> attribute "pubdate" appears to no longer be part of the HTML5 spec, so remove them (they weren't being used anyways)
This commit is contained in:
parent
b242ebe349
commit
ca76e89d0e
|
@ -93,7 +93,7 @@ function _s_comment( $comment, $args, $depth ) {
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<div class="comment-meta commentmetadata">
|
<div class="comment-meta commentmetadata">
|
||||||
<a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>"><time pubdate datetime="<?php comment_time( 'c' ); ?>">
|
<a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>"><time datetime="<?php comment_time( 'c' ); ?>">
|
||||||
<?php
|
<?php
|
||||||
/* translators: 1: date, 2: time */
|
/* translators: 1: date, 2: time */
|
||||||
printf( __( '%1$s at %2$s', '_s' ), get_comment_date(), get_comment_time() ); ?>
|
printf( __( '%1$s at %2$s', '_s' ), get_comment_date(), get_comment_time() ); ?>
|
||||||
|
@ -123,7 +123,7 @@ if ( ! function_exists( '_s_posted_on' ) ) :
|
||||||
* @since _s 1.0
|
* @since _s 1.0
|
||||||
*/
|
*/
|
||||||
function _s_posted_on() {
|
function _s_posted_on() {
|
||||||
printf( __( 'Posted on <a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s" pubdate>%4$s</time></a><span class="byline"> by <span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span></span>', '_s' ),
|
printf( __( 'Posted on <a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a><span class="byline"> by <span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span></span>', '_s' ),
|
||||||
esc_url( get_permalink() ),
|
esc_url( get_permalink() ),
|
||||||
esc_attr( get_the_time() ),
|
esc_attr( get_the_time() ),
|
||||||
esc_attr( get_the_date( 'c' ) ),
|
esc_attr( get_the_date( 'c' ) ),
|
||||||
|
|
Reference in New Issue