Correct sample URL's for custom post_type's. uses pretty permalinks if possible. Props duck_. See #12870

git-svn-id: http://svn.automattic.com/wordpress/trunk@14068 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
dd32 2010-04-11 08:58:40 +00:00
parent 9cd8dd44c6
commit 994b00e85b
1 changed files with 1 additions and 1 deletions

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, $leavename);
return get_post_permalink($post, $leavename, $sample);
$permalink = get_option('permalink_structure');