WordPress.org

Make WordPress Core

Changeset 7959


Ignore:
Timestamp:
05/20/08 16:43:44 (7 years ago)
Author:
ryan
Message:

get_archives_link filter. Props codealsatian. fixes #5530 for trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/general-template.php

    r7941 r7959  
    357357 
    358358    if ('link' == $format) 
    359         return "\t<link rel='archives' title='$title_text' href='$url' />\n"; 
     359        $link_html = "\t<link rel='archives' title='$title_text' href='$url' />\n"; 
    360360    elseif ('option' == $format) 
    361         return "\t<option value='$url'>$before $text $after</option>\n"; 
     361        $link_html = "\t<option value='$url'>$before $text $after</option>\n"; 
    362362    elseif ('html' == $format) 
    363         return "\t<li>$before<a href='$url' title='$title_text'>$text</a>$after</li>\n"; 
     363        $link_html = "\t<li>$before<a href='$url' title='$title_text'>$text</a>$after</li>\n"; 
    364364    else // custom 
    365         return "\t$before<a href='$url' title='$title_text'>$text</a>$after\n"; 
     365        $link_html = "\t$before<a href='$url' title='$title_text'>$text</a>$after\n"; 
     366 
     367    $link_html = apply_filters( "get_archives_link", $link_html ); 
     368         
     369    return $link_html; 
    366370} 
    367371 
Note: See TracChangeset for help on using the changeset viewer.