mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 12:58:25 +01:00
previous_post_link and next_post_link filters. Props JohnLamansky. fixes #6985 for 2.5
git-svn-id: https://develop.svn.wordpress.org/branches/2.5@8109 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2b3639b16b
commit
d7abb13f29
@ -599,7 +599,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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user