forked from mirror/_s
Second round of removing title attributes.
This commit is contained in:
parent
22e859857e
commit
48ac0da4e1
|
@ -20,14 +20,13 @@ get_header();
|
|||
<div class="entry-meta">
|
||||
<?php
|
||||
$metadata = wp_get_attachment_metadata();
|
||||
printf( __( 'Published <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 × %5$s</a> in <a href="%6$s" title="Return to %7$s" rel="gallery">%8$s</a>', '_s' ),
|
||||
printf( __( 'Published <span class="entry-date"><time class="entry-date" datetime="%1$s">%2$s</time></span> at <a href="%3$s">%4$s × %5$s</a> in <a href="%6$s" rel="gallery">%7$s</a>', '_s' ),
|
||||
esc_attr( get_the_date( 'c' ) ),
|
||||
esc_html( get_the_date() ),
|
||||
esc_url( wp_get_attachment_url() ),
|
||||
$metadata['width'],
|
||||
$metadata['height'],
|
||||
esc_url( get_permalink( $post->post_parent ) ),
|
||||
esc_attr( strip_tags( get_the_title( $post->post_parent ) ) ),
|
||||
get_the_title( $post->post_parent )
|
||||
);
|
||||
|
||||
|
@ -66,11 +65,11 @@ get_header();
|
|||
<footer class="entry-meta">
|
||||
<?php
|
||||
if ( comments_open() && pings_open() ) : // Comments and trackbacks open
|
||||
printf( __( '<a class="comment-link" href="#respond" title="Post a comment">Post a comment</a> or leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', '_s' ), esc_url( get_trackback_url() ) );
|
||||
printf( __( '<a class="comment-link" href="#respond">Post a comment</a> or leave a trackback: <a class="trackback-link" href="%s" rel="trackback">Trackback URL</a>.', '_s' ), esc_url( get_trackback_url() ) );
|
||||
elseif ( ! comments_open() && pings_open() ) : // Only trackbacks open
|
||||
printf( __( 'Comments are closed, but you can leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', '_s' ), esc_url( get_trackback_url() ) );
|
||||
printf( __( 'Comments are closed, but you can leave a trackback: <a class="trackback-link" href="%s" rel="trackback">Trackback URL</a>.', '_s' ), esc_url( get_trackback_url() ) );
|
||||
elseif ( comments_open() && ! pings_open() ) : // Only comments open
|
||||
_e( 'Trackbacks are closed, but you can <a class="comment-link" href="#respond" title="Post a comment">post a comment</a>.', '_s' );
|
||||
_e( 'Trackbacks are closed, but you can <a class="comment-link" href="#respond">post a comment</a>.', '_s' );
|
||||
elseif ( ! comments_open() && ! pings_open() ) : // Comments and trackbacks closed
|
||||
_e( 'Both comments and trackbacks are currently closed.', '_s' );
|
||||
endif;
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
<?php $header_image = get_header_image();
|
||||
if ( ! empty( $header_image ) ) { ?>
|
||||
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
|
||||
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
|
||||
<img src="<?php header_image(); ?>" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="">
|
||||
</a>
|
||||
<?php } // if ( ! empty( $header_image ) ) ?>
|
||||
|
|
|
@ -159,9 +159,8 @@ function _s_the_attached_image() {
|
|||
$next_attachment_url = get_attachment_link( array_shift( $attachment_ids ) );
|
||||
}
|
||||
|
||||
printf( '<a href="%1$s" title="%2$s" rel="attachment">%3$s</a>',
|
||||
printf( '<a href="%1$s" rel="attachment">%2$s</a>',
|
||||
esc_url( $next_attachment_url ),
|
||||
the_title_attribute( array( 'echo' => false ) ),
|
||||
wp_get_attachment_image( $post->ID, $attachment_size )
|
||||
);
|
||||
}
|
||||
|
@ -184,14 +183,12 @@ function _s_posted_on() {
|
|||
);
|
||||
|
||||
printf( __( '<span class="posted-on">Posted on %1$s</span><span class="byline"> by %2$s</span>', '_s' ),
|
||||
sprintf( '<a href="%1$s" title="%2$s" rel="bookmark">%3$s</a>',
|
||||
sprintf( '<a href="%1$s" rel="bookmark">%2$s</a>',
|
||||
esc_url( get_permalink() ),
|
||||
esc_attr( get_the_time() ),
|
||||
$time_string
|
||||
),
|
||||
sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>',
|
||||
sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s">%2$s</a></span>',
|
||||
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
|
||||
esc_attr( sprintf( __( 'View all posts by %s', '_s' ), get_the_author() ) ),
|
||||
esc_html( get_the_author() )
|
||||
)
|
||||
);
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<form role="search" method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
|
||||
<label>
|
||||
<span class="screen-reader-text"><?php _ex( 'Search for:', 'label', '_s' ); ?></span>
|
||||
<input type="search" class="search-field" placeholder="<?php echo esc_attr_x( 'Search …', 'placeholder', '_s' ); ?>" value="<?php echo esc_attr( get_search_query() ); ?>" name="s" title="<?php _ex( 'Search for:', 'label', '_s' ); ?>">
|
||||
<input type="search" class="search-field" placeholder="<?php echo esc_attr_x( 'Search …', 'placeholder', '_s' ); ?>" value="<?php echo esc_attr( get_search_query() ); ?>" name="s">
|
||||
</label>
|
||||
<input type="submit" class="search-submit" value="<?php echo esc_attr_x( 'Search', 'submit button', '_s' ); ?>">
|
||||
</form>
|
||||
|
|
Reference in New Issue