Make WordPress Core

Opened 10 years ago

Closed 9 years ago

#5531 closed enhancement (invalid)

Add a filter to the day link in general-template.php

Reported by: codealsatian Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.5
Component: Template Keywords: has-patch hook filter calendar_day_link
Focuses: Cc:


Please add a filter to the day hyperlink in general-template.php.

As you'll see in the attached DIFF file, I added a new function so that it's clear to which function the filter applies. I felt it might be confusing if the filter was included in the get_calendar() function and yet it acts only on the day link.

I develop plugins that add classes, ids, conditional nofollows, etc., to hyperlinks for styling and SEO.

Attachments (2)

general-template.php.diff (998 bytes) - added by codealsatian 10 years ago.
general-template.php-2.diff (630 bytes) - added by JohnLamansky 10 years ago.
Previous patch seems like overkill. This is a simpler solution.

Download all attachments as: .zip

Change History (7)

#1 @djr
10 years ago

  • Keywords has-patch added; filter apply_filters bookmarks removed

#2 @ffemtcj
10 years ago

  • Milestone changed from 2.5 to 2.6

10 years ago

Previous patch seems like overkill. This is a simpler solution.

#3 @JohnLamansky
10 years ago

  • Component changed from General to Template
  • Keywords hook filter calendar_day_link added
  • Milestone changed from 2.6 to 2.5.2


#4 @ryan
10 years ago

  • Milestone changed from 2.5.2 to 2.9

Milestone 2.5.2 deleted

#5 @Denis-de-Bernardy
9 years ago

  • Milestone 2.9 deleted
  • Resolution set to invalid
  • Status changed from new to closed

what's wrong with the filter in get_day_link()?

Note: See TracTickets for help on using tickets.