Remove redundant title attributes from get_calendar().
props joedolson. fixes #26561. Built from https://develop.svn.wordpress.org/trunk@29244 git-svn-id: http://core.svn.wordpress.org/trunk@29028 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
81f912dd7a
commit
6628d7dd33
|
@ -1503,7 +1503,7 @@ function get_calendar($initial = true, $echo = true) {
|
||||||
<tr>';
|
<tr>';
|
||||||
|
|
||||||
if ( $previous ) {
|
if ( $previous ) {
|
||||||
$calendar_output .= "\n\t\t".'<td colspan="3" id="prev"><a href="' . get_month_link($previous->year, $previous->month) . '" title="' . esc_attr( sprintf(__('View posts for %1$s %2$s'), $wp_locale->get_month($previous->month), date('Y', mktime(0, 0 , 0, $previous->month, 1, $previous->year)))) . '">« ' . $wp_locale->get_month_abbrev($wp_locale->get_month($previous->month)) . '</a></td>';
|
$calendar_output .= "\n\t\t".'<td colspan="3" id="prev"><a href="' . get_month_link($previous->year, $previous->month) . '">« ' . $wp_locale->get_month_abbrev($wp_locale->get_month($previous->month)) . '</a></td>';
|
||||||
} else {
|
} else {
|
||||||
$calendar_output .= "\n\t\t".'<td colspan="3" id="prev" class="pad"> </td>';
|
$calendar_output .= "\n\t\t".'<td colspan="3" id="prev" class="pad"> </td>';
|
||||||
}
|
}
|
||||||
|
@ -1511,7 +1511,7 @@ function get_calendar($initial = true, $echo = true) {
|
||||||
$calendar_output .= "\n\t\t".'<td class="pad"> </td>';
|
$calendar_output .= "\n\t\t".'<td class="pad"> </td>';
|
||||||
|
|
||||||
if ( $next ) {
|
if ( $next ) {
|
||||||
$calendar_output .= "\n\t\t".'<td colspan="3" id="next"><a href="' . get_month_link($next->year, $next->month) . '" title="' . esc_attr( sprintf(__('View posts for %1$s %2$s'), $wp_locale->get_month($next->month), date('Y', mktime(0, 0 , 0, $next->month, 1, $next->year))) ) . '">' . $wp_locale->get_month_abbrev($wp_locale->get_month($next->month)) . ' »</a></td>';
|
$calendar_output .= "\n\t\t".'<td colspan="3" id="next"><a href="' . get_month_link($next->year, $next->month) . '">' . $wp_locale->get_month_abbrev($wp_locale->get_month($next->month)) . ' »</a></td>';
|
||||||
} else {
|
} else {
|
||||||
$calendar_output .= "\n\t\t".'<td colspan="3" id="next" class="pad"> </td>';
|
$calendar_output .= "\n\t\t".'<td colspan="3" id="next" class="pad"> </td>';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue