[wp-trac] [WordPress Trac] #39763: W3C Error with get_calendar()

WordPress Trac noreply at wordpress.org
Thu Feb 20 22:25:46 UTC 2020

#39763: W3C Error with get_calendar()
 Reporter:  Harry Milatz                         |       Owner:
                                                 |  isabel_brison
     Type:  defect (bug)                         |      Status:  reopened
 Priority:  normal                               |   Milestone:  5.4
Component:  General                              |     Version:  4.7.2
 Severity:  minor                                |  Resolution:
 Keywords:  good-first-bug has-patch needs-dev-  |     Focuses:  ui,
  note has-screenshots needs-testing             |  accessibility
Changes (by sabernhardt):

 * keywords:  good-first-bug has-patch needs-dev-note commit has-screenshots
     => good-first-bug has-patch needs-dev-note has-screenshots needs-


 This patch adds classes to the new nav and span elements:
 <nav class="wp-calendar-months" ...>
 <span id="prev" class="wp-calendar-previous-month">
 <span id="next" class="wp-calendar-next-month">

 I checked https://wpdirectory.net/ to make sure none of these names were
 already in one of those plugins or themes. If there's a better choice,
 though, feel free to change each name.

 Note also: I expect that removing the "pad" class from the empty previous
 month's `span` tag was intentional. So I removed it from the empty next
 month's `span` as well. (Please correct if I'm wrong.)

Ticket URL: <https://core.trac.wordpress.org/ticket/39763#comment:28>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list