diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php
index 8c86ed7f92..aa8ef9e422 100644
|
a
|
b
|
function get_calendar( $initial = true, $echo = true ) { |
| 2238 | 2238 | |
| 2239 | 2239 | $calendar_output .= "\n\t</table>"; |
| 2240 | 2240 | |
| 2241 | | $calendar_output .= '<nav aria-label="' . __( 'Previous and next months' ) . '">'; |
| | 2241 | $calendar_output .= '<nav aria-label="' . __( 'Previous and next months' ) . '" class="wp-calendar-nav">'; |
| 2242 | 2242 | |
| 2243 | 2243 | if ( $previous ) { |
| 2244 | | $calendar_output .= "\n\t\t" . '<span id="prev"><a href="' . get_month_link( $previous->year, $previous->month ) . '">« ' . |
| | 2244 | $calendar_output .= "\n\t\t" . '<span id="prev" class="wp-calendar-nav-prev"><a href="' . get_month_link( $previous->year, $previous->month ) . '">« ' . |
| 2245 | 2245 | $wp_locale->get_month_abbrev( $wp_locale->get_month( $previous->month ) ) . |
| 2246 | 2246 | '</a></span>'; |
| 2247 | 2247 | } else { |
| 2248 | | $calendar_output .= "\n\t\t" . '<span id="prev"> </span>'; |
| | 2248 | $calendar_output .= "\n\t\t" . '<span id="prev" class="wp-calendar-nav-prev"> </span>'; |
| 2249 | 2249 | } |
| 2250 | 2250 | |
| 2251 | 2251 | $calendar_output .= "\n\t\t" . '<span class="pad"> </span>'; |
| 2252 | 2252 | |
| 2253 | 2253 | if ( $next ) { |
| 2254 | | $calendar_output .= "\n\t\t" . '<span id="next"><a href="' . get_month_link( $next->year, $next->month ) . '">' . |
| | 2254 | $calendar_output .= "\n\t\t" . '<span id="next" class="wp-calendar-nav-next"><a href="' . get_month_link( $next->year, $next->month ) . '">' . |
| 2255 | 2255 | $wp_locale->get_month_abbrev( $wp_locale->get_month( $next->month ) ) . |
| 2256 | 2256 | ' »</a></span>'; |
| 2257 | 2257 | } else { |
| 2258 | | $calendar_output .= "\n\t\t" . '<span id="next" class="pad"> </span>'; |
| | 2258 | $calendar_output .= "\n\t\t" . '<span id="next" class="wp-calendar-nav-next"> </span>'; |
| 2259 | 2259 | } |
| 2260 | 2260 | |
| 2261 | 2261 | $calendar_output .= ' |