From b0e1f27a3ca0054e18698afd551210013b03a06d Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 5 Feb 2010 17:54:40 +0000 Subject: [PATCH] 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 --- wp-includes/link-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index 6d1ca2842..e9385fa00 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); } /**