mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Remove redundant title attributes.
props sabreuse. see #24766. Built from https://develop.svn.wordpress.org/trunk@25675 git-svn-id: http://core.svn.wordpress.org/trunk@25591 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
be366723d2
commit
ce637bdcb3
@ -574,7 +574,7 @@ class WP_Widget_Recent_Posts extends WP_Widget {
|
|||||||
<ul>
|
<ul>
|
||||||
<?php while ( $r->have_posts() ) : $r->the_post(); ?>
|
<?php while ( $r->have_posts() ) : $r->the_post(); ?>
|
||||||
<li>
|
<li>
|
||||||
<a href="<?php the_permalink() ?>" title="<?php echo esc_attr( get_the_title() ? get_the_title() : get_the_ID() ); ?>"><?php if ( get_the_title() ) the_title(); else the_ID(); ?></a>
|
<a href="<?php the_permalink(); ?>"><?php get_the_title() ? the_title() : the_ID(); ?></a>
|
||||||
<?php if ( $show_date ) : ?>
|
<?php if ( $show_date ) : ?>
|
||||||
<span class="post-date"><?php echo get_the_date(); ?></span>
|
<span class="post-date"><?php echo get_the_date(); ?></span>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
@ -883,17 +883,16 @@ function single_month_title($prefix = '', $display = true ) {
|
|||||||
*/
|
*/
|
||||||
function get_archives_link($url, $text, $format = 'html', $before = '', $after = '') {
|
function get_archives_link($url, $text, $format = 'html', $before = '', $after = '') {
|
||||||
$text = wptexturize($text);
|
$text = wptexturize($text);
|
||||||
$title_text = esc_attr($text);
|
|
||||||
$url = esc_url($url);
|
$url = esc_url($url);
|
||||||
|
|
||||||
if ('link' == $format)
|
if ('link' == $format)
|
||||||
$link_html = "\t<link rel='archives' title='$title_text' href='$url' />\n";
|
$link_html = "\t<link rel='archives' title='" . esc_attr( $text ) . "' href='$url' />\n";
|
||||||
elseif ('option' == $format)
|
elseif ('option' == $format)
|
||||||
$link_html = "\t<option value='$url'>$before $text $after</option>\n";
|
$link_html = "\t<option value='$url'>$before $text $after</option>\n";
|
||||||
elseif ('html' == $format)
|
elseif ('html' == $format)
|
||||||
$link_html = "\t<li>$before<a href='$url' title='$title_text'>$text</a>$after</li>\n";
|
$link_html = "\t<li>$before<a href='$url'>$text</a>$after</li>\n";
|
||||||
else // custom
|
else // custom
|
||||||
$link_html = "\t$before<a href='$url' title='$title_text'>$text</a>$after\n";
|
$link_html = "\t$before<a href='$url'>$text</a>$after\n";
|
||||||
|
|
||||||
$link_html = apply_filters( 'get_archives_link', $link_html );
|
$link_html = apply_filters( 'get_archives_link', $link_html );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user