From 22c02a0325b647320dbd482b7c1094784cd66a34 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 25 Feb 2020 20:28:29 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@47374 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/general-template.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php index 8c86ed7f92..281e85307e 100644 --- a/src/wp-includes/general-template.php +++ b/src/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 .= '