Pass to post_type_link filter. Props prettyboymp. see #9674

git-svn-id: http://svn.automattic.com/wordpress/trunk@12971 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2010-02-05 17:54:40 +00:00
parent 4b7ca50b8d
commit b0e1f27a3c
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ function get_post_link( $id = 0, $leavename = false, $sample = false ) {
$post_link = home_url($post_link);
}
return apply_filters('post_type_link', $post_link, $id);
return apply_filters('post_type_link', $post_link, $id, $leavename);
}
/**