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
This commit is contained in:
parent
17129fb62e
commit
4c7dc10d60
|
@ -204,7 +204,7 @@ function get_post_permalink( $id = 0, $leavename = false, $sample = false ) {
|
||||||
$post_link = home_url($post_link);
|
$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
|
else
|
||||||
$link = _get_page_link( $id , $leavename, $sample );
|
$link = _get_page_link( $id , $leavename, $sample );
|
||||||
|
|
||||||
return apply_filters('page_link', $link, $id);
|
return apply_filters('page_link', $link, $id, $sample);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue