From 1a9b7f873792ab4fd3bd98f5e6162accaed2b127 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 25 Feb 2020 20:30:07 +0000 Subject: [PATCH] General: Introduce HTML classes in `get_calendar()` for easier CSS targeting: * `.wp-calendar-table` for the `` element. * `.wp-calendar-nav` for the navigation wrapper. * `.wp-calendar-nav-prev` for the previous month link. * `.wp-calendar-nav-next` for the next month link. Replace `#prev` and `#next` HTML IDs with `.wp-calendar-nav-prev` and `.wp-calendar-nav-next` classes. Props sabernhardt, BackuPs, audrasjb, jorbin. Fixes #39763. Built from https://develop.svn.wordpress.org/trunk@47374 git-svn-id: http://core.svn.wordpress.org/trunk@47161 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/general-template.php | 12 ++++++------ wp-includes/version.php | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index 8c86ed7f92..281e85307e 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -2143,7 +2143,7 @@ function get_calendar( $initial = true, $echo = true ) { /* translators: Calendar caption: 1: Month name, 2: 4-digit year. */ $calendar_caption = _x( '%1$s %2$s', 'calendar caption' ); - $calendar_output = '
+ $calendar_output = '
' . sprintf( $calendar_caption, $wp_locale->get_month( $thismonth ), @@ -2238,24 +2238,24 @@ function get_calendar( $initial = true, $echo = true ) { $calendar_output .= "\n\t
"; - $calendar_output .= '