From 90c662f3787917cbbc548dd6329143cc75c62cc0 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 5 Feb 2010 17:54:40 +0000 Subject: [PATCH] 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 --- 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 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); } /**