﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
19640	adjacent_post_link filter hook missing $post	tychay	ryan	"wp-includes/link-template.php, line 1369

is:
apply_filters( ""{$adjacent}_post_link"", $format, $link );

should be:
apply_filters( ""{$adjacent}_post_link"", $format, $link, $post );

Reason:
Users may want to do replacement in post link that requires information about the post. For instance, inserting the author into the link. Example, if the post link format contains ""%author"" the following code will inject the author name of the next/previous post into it.

function advent_author_format_link($format, $link, $post) {
    $author = get_userdata($post->post_author);
    $format = str_replace('%author', $author->display_name, $format);
    return $format;
    return array(
        'format'    => $format,
        'post'      => $post,
    );
}
add_action('previous_post_link', 'advent_author_format_link', 10, 3);
add_action('next_post_link', 'advent_author_format_link', 10, 3);"	defect (bug)	closed	normal	3.5	General	3.3	minor	fixed	has-patch	
