diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index edfb5f1fbf..9875356c65 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -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) {