previous_post_link and next_post_link filters. Props JohnLamansky. fixes #6985 for trunk

git-svn-id: https://develop.svn.wordpress.org/trunk@8108 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-06-16 22:27:07 +00:00
parent 11964d948e
commit 55a2ea611f
1 changed files with 2 additions and 1 deletions

View File

@ -611,7 +611,8 @@ function adjacent_post_link($format, $link, $in_same_cat = false, $excluded_cate
$format = str_replace('%link', $link, $format);
echo $format;
$adjacent = $previous ? 'previous' : 'next';
echo apply_filters( "{$adjacent}_post_link", $format, $link );
}
function get_pagenum_link($pagenum = 1) {