Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#16551 closed defect (bug) (duplicate)

get_calendar() uses hardcoded element ID

Reported by: kawauso Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.0
Component: Template Keywords:
Focuses: Cc:


The ID of the table used by get_calendar() is hardcoded to 'wp-calendar', resulting in a conflict if more than one instance is present. The Calendar widget is a wrapper for this function.

Related: #16539

Change History (4)

comment:1 follow-up: Denis-de-Bernardy3 years ago

I'm failing to find the dup ticket, but there is one that got closed (by azaozz, if memory serves) based on the idea that changing it would break pretty much every theme that uses the calendar's ID as a selector, and there there only ought to be one calendar anyway.

comment:3 kawauso3 years ago

  • Resolution set to duplicate
  • Status changed from new to closed

comment:4 nacin3 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.