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:
parent
4b7ca50b8d
commit
b0e1f27a3c
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue