Let the filters know its a sample permalink. Props yoast.

git-svn-id: https://develop.svn.wordpress.org/trunk@15117 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2010-06-02 20:52:22 +00:00
parent 0922715668
commit c8dae44e09
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
/**