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:
parent
0922715668
commit
c8dae44e09
|
@ -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