Make WordPress Core

Opened 7 years ago

Closed 3 months ago

#7402 closed enhancement (wontfix)

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

Reported by: docwhat Owned by:
Milestone: 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 (8)

#1 @docwhat
7 years ago

  • Keywords dev-feedback added

#2 @ryan
7 years ago

  • Milestone changed from 2.7 to 2.8

Moving enhancements to 2.8.

#3 @Denis-de-Bernardy
7 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

5 years ago

#4 @wojtek.szkutnik
5 years ago

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

Attached a better patch.

#5 @nacin
22 months ago

  • Component changed from Template to Posts, Post Types
  • Focuses template added

#6 @wonderboymusic
3 months ago

  • Milestone Future Release deleted
  • Resolution set to wontfix
  • Status changed from new to closed

This adds a class on the row that is already marked id="today", which should suffice.

Note: See TracTickets for help on using tickets.