Pass to post_type_link filter. Props prettyboymp. see #9674

git-svn-id: https://develop.svn.wordpress.org/trunk@12971 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2010-02-05 17:54:40 +00:00
parent 66f5d7e74e
commit 90c662f378
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);
}
/**