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:
@@ -883,17 +883,16 @@ function single_month_title($prefix = '', $display = true ) {
|
||||
*/
|
||||
function get_archives_link($url, $text, $format = 'html', $before = '', $after = '') {
|
||||
$text = wptexturize($text);
|
||||
$title_text = esc_attr($text);
|
||||
$url = esc_url($url);
|
||||
|
||||
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)
|
||||
$link_html = "\t<option value='$url'>$before $text $after</option>\n";
|
||||
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
|
||||
$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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user