Make WordPress Core

Opened 7 years ago

Last modified 14 months ago

#7402 new enhancement

get_calendar() -- add class to current is_single() post

Reported by: docwhat Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version:
Component: Posts, Post Types Keywords: has-patch gsoc needs-testing
Focuses: template Cc:


When I look at the markup for the wp_calender widget for a 'single' page, I expect the day of the current article to have it's <td> cell to have a class on it. Like the class "today" for the current day.

Attachments (2)

get_calendar.patch (1.8 KB) - added by docwhat 7 years ago.
7402.diff (1.4 KB) - added by wojtek.szkutnik 5 years ago.

Download all attachments as: .zip

Change History (7)

@docwhat7 years ago

comment:1 @docwhat7 years ago

  • Keywords dev-feedback added

comment:2 @ryan6 years ago

  • Milestone changed from 2.7 to 2.8

Moving enhancements to 2.8.

comment:3 @Denis-de-Bernardy6 years ago

  • Keywords needs-patch added; has-patch dev-feedback removed
  • Milestone changed from 2.8 to Future Release

the patch will make the this_post ID show up on the same day as the post in invalid months.

moving to Future

@wojtek.szkutnik5 years ago

comment:4 @wojtek.szkutnik5 years ago

  • Cc wojtek.szkutnik@… added
  • Keywords has-patch gsoc needs-testing added; needs-patch removed

Attached a better patch.

comment:5 @nacin14 months ago

  • Component changed from Template to Posts, Post Types
  • Focuses template added
Note: See TracTickets for help on using tickets.