From 0d85cbf9997c5f7e19cdbc17043b8e8e203e979d Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 4 Feb 2010 16:06:58 +0000 Subject: [PATCH] Make calendar valid HTML 5. Props iammattthomas. fixes #11554 git-svn-id: https://develop.svn.wordpress.org/trunk@12943 602fd350-edb4-49c9-b593-d223f7449a82 --- 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)) . ' »