Fix the Permalink editor for custom post_types. Fixes #12742

git-svn-id: https://develop.svn.wordpress.org/trunk@13865 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse
2010-03-28 05:23:49 +00:00
parent fd04241472
commit b9682621d0
2 changed files with 19 additions and 8 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ function get_permalink($id = 0, $leavename = false) {
elseif ( $post->post_type == 'attachment' )
return get_attachment_link($post->ID);
elseif ( in_array($post->post_type, get_post_types( array('_builtin' => false) ) ) )
return get_post_permalink($post);
return get_post_permalink($post, $leavename);
$permalink = get_option('permalink_structure');