mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 11:35:48 +00:00
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:
parent
9cd8dd44c6
commit
994b00e85b
@ -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');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user