WordPress.org

Make WordPress Core

Ticket #5531: general-template.php.diff

File general-template.php.diff, 998 bytes (added by codealsatian, 6 years ago)
  • general-template.php

     
    688688                        echo '<td>'; 
    689689 
    690690                if ( in_array($day, $daywithpost) ) // any posts today? 
    691                                 echo '<a href="' . get_day_link($thisyear, $thismonth, $day) . "\" title=\"$ak_titles_for_day[$day]\">$day</a>"; 
     691                                echo get_day_link_href($thisyear, $thismonth, $day, $ak_titles_for_day); 
    692692                else 
    693693                        echo $day; 
    694694                echo '</td>'; 
     
    710710        wp_cache_set( 'get_calendar', $cache, 'calendar' ); 
    711711} 
    712712 
     713function get_day_link_href($thisyear, $thismonth, $day, $ak_titles_for_day) { 
     714        $day_link_href = '<a href="' . get_day_link($thisyear, $thismonth, $day) . "\" title=\"$ak_titles_for_day[$day]\">$day</a>"; 
     715        $day_link_href = apply_filters( "get_day_link_href", $day_link_href ); 
     716        return $day_link_href; 
     717} 
     718 
    713719function delete_get_calendar_cache() { 
    714720        wp_cache_delete( 'get_calendar', 'calendar' ); 
    715721}