From 92aef4cc3cdace8bcfae9c5ff333cbf796fa8e83 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 4 Feb 2010 16:06:58 +0000 Subject: [PATCH] Make calendar valid HTML 5. Props iammattthomas. fixes #11554 git-svn-id: http://svn.automattic.com/wordpress/trunk@12943 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/general-template.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index 20d195798b..48cb814a46 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -1073,7 +1073,7 @@ function get_calendar($initial = true) { /* translators: Calendar caption: 1: month name, 2: 4-digit year */ $calendar_caption = _x('%1$s %2$s', 'calendar caption'); - echo ' + echo '
'; @@ -1087,7 +1087,7 @@ function get_calendar($initial = true) { foreach ( $myweek as $wd ) { $day_name = (true == $initial) ? $wp_locale->get_weekday_initial($wd) : $wp_locale->get_weekday_abbrev($wd); $wd = esc_attr($wd); - echo "\n\t\t"; + echo "\n\t\t"; } echo ' @@ -1098,7 +1098,7 @@ function get_calendar($initial = true) { '; if ( $previous ) { - echo "\n\t\t".''; } else { @@ -1108,7 +1108,7 @@ function get_calendar($initial = true) { echo "\n\t\t".''; if ( $next ) { - echo "\n\t\t".''; } else {
' . sprintf($calendar_caption, $wp_locale->get_month($thismonth), date('Y', $unixmonth)) . '
$day_name$day_name
« ' . $wp_locale->get_month_abbrev($wp_locale->get_month($previous->month)) . ' ' . $wp_locale->get_month_abbrev($wp_locale->get_month($next->month)) . ' »