Add editable_slug filter. Props nbachiyski. see #6915

git-svn-id: https://develop.svn.wordpress.org/trunk@7896 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-05-05 17:08:13 +00:00
parent b8799eb470
commit fec6cabd09
4 changed files with 4 additions and 4 deletions

View File

@@ -627,7 +627,7 @@ function get_sample_permalink($id, $title=null, $name = null) {
$permalink = str_replace('%pagename%', "${uri}%pagename%", $permalink);
}
$permalink = array($permalink, $post->post_name);
$permalink = array($permalink, apply_filters('editable_slug', $post->post_name));
$post->post_status = $original_status;
$post->post_date = $original_date;
$post->post_name = $original_name;