previous_post_link and next_post_link filters. Props JohnLamansky. fixes #6985 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@8108 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
236eb02bee
commit
9b181f0973
|
@ -611,7 +611,8 @@ function adjacent_post_link($format, $link, $in_same_cat = false, $excluded_cate
|
||||||
|
|
||||||
$format = str_replace('%link', $link, $format);
|
$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) {
|
function get_pagenum_link($pagenum = 1) {
|
||||||
|
|
Loading…
Reference in New Issue