mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-04 03:51:38 +00:00
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:
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user