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:
parent
66f5d7e74e
commit
90c662f378
@ -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
Block a user