diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index 6d1ca2842f..e9385fa00d 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -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); } /**