From 4c7dc10d60a7c0f2a62893366f2e92f4b6256904 Mon Sep 17 00:00:00 2001 From: westi Date: Wed, 2 Jun 2010 20:52:22 +0000 Subject: [PATCH] Let the filters know its a sample permalink. Props yoast. git-svn-id: http://svn.automattic.com/wordpress/trunk@15117 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/link-template.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index 9700950f7a..0b92174d0a 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -204,7 +204,7 @@ function get_post_permalink( $id = 0, $leavename = false, $sample = false ) { $post_link = home_url($post_link); } - return apply_filters('post_type_link', $post_link, $id, $leavename); + return apply_filters('post_type_link', $post_link, $id, $leavename, $sample); } /** @@ -247,7 +247,7 @@ function get_page_link( $id = false, $leavename = false, $sample = false ) { else $link = _get_page_link( $id , $leavename, $sample ); - return apply_filters('page_link', $link, $id); + return apply_filters('page_link', $link, $id, $sample); } /**