Make WordPress Core

Opened 7 years ago

Closed 6 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 7 years ago.
general-template.php-2.diff (630 bytes) - added by JohnLamansky 7 years ago.
Previous patch seems like overkill. This is a simpler solution.

Download all attachments as: .zip

Change History (7)

comment:1 @djr7 years ago

  • Keywords has-patch added; filter apply_filters bookmarks removed

comment:2 @ffemtcj7 years ago

  • Milestone changed from 2.5 to 2.6

@JohnLamansky7 years ago

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

comment:3 @JohnLamansky7 years ago

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


comment:4 @ryan7 years ago

  • Milestone changed from 2.5.2 to 2.9

Milestone 2.5.2 deleted

comment:5 @Denis-de-Bernardy6 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.