WordPress.org

Make WordPress Core

Ticket #5531: general-template.php-2.diff

File general-template.php-2.diff, 630 bytes (added by JohnLamansky, 10 years ago)

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

  • wp-includes/general-template.php

     
    713713                        echo '<td>';
    714714
    715715                if ( in_array($day, $daywithpost) ) // any posts today?
    716                                 echo '<a href="' . get_day_link($thisyear, $thismonth, $day) . "\" title=\"$ak_titles_for_day[$day]\">$day</a>";
     716                                echo apply_filters( 'calendar_day_link', '<a href="' . get_day_link($thisyear, $thismonth, $day) . "\" title=\"$ak_titles_for_day[$day]\">$day</a>" );
    717717                else
    718718                        echo $day;
    719719                echo '</td>';