Make WordPress Core

Changeset 7960


Ignore:
Timestamp:
05/20/2008 04:44:01 PM (16 years ago)
Author:
ryan
Message:

get_archives_link filter. Props codealsatian. fixes #5530 for 2.5

File:
1 edited

Legend:

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

    r7562 r7960  
    344344
    345345    if ('link' == $format)
    346         return "\t<link rel='archives' title='$title_text' href='$url' />\n";
     346        $link_html = "\t<link rel='archives' title='$title_text' href='$url' />\n";
    347347    elseif ('option' == $format)
    348         return "\t<option value='$url'>$before $text $after</option>\n";
     348        $link_html = "\t<option value='$url'>$before $text $after</option>\n";
    349349    elseif ('html' == $format)
    350         return "\t<li>$before<a href='$url' title='$title_text'>$text</a>$after</li>\n";
     350        $link_html = "\t<li>$before<a href='$url' title='$title_text'>$text</a>$after</li>\n";
    351351    else // custom
    352         return "\t$before<a href='$url' title='$title_text'>$text</a>$after\n";
     352        $link_html = "\t$before<a href='$url' title='$title_text'>$text</a>$after\n";
     353
     354    $link_html = apply_filters( "get_archives_link", $link_html );
     355       
     356    return $link_html;
    353357}
    354358
Note: See TracChangeset for help on using the changeset viewer.