diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index ba961a1cf9..bed891f553 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -1072,7 +1072,7 @@ function get_adjacent_post_rel_link($title = '%title', $in_same_cat = false, $ex $title = str_replace('%title', $post->post_title, $title); $title = str_replace('%date', $date, $title); - $title = apply_filters('the_title', $title, $post); + $title = apply_filters('the_title', $title, $post->ID); $link = $previous ? "post_title, $title); $title = str_replace('%date', $date, $title); - $title = apply_filters('the_title', $title, $post); + $title = apply_filters('the_title', $title, $post->ID); $link = $start ? "post_title, $title); $title = str_replace('%date', $date, $title); - $title = apply_filters('the_title', $title, $post); + $title = apply_filters('the_title', $title, $post->ID); $link = "ID); $date = mysql2date(get_option('date_format'), $post->post_date); $rel = $previous ? 'prev' : 'next';