diff --git i/wp-includes/link-template.php w/wp-includes/link-template.php
index 7197549..a0167eb 100644
i
|
w
|
function get_post_permalink( $id = 0, $leavename = false, $sample = false ) { |
200 | 200 | $post_link = home_url( user_trailingslashit($post_link) ); |
201 | 201 | } else { |
202 | 202 | if ( $post_type->query_var && ( isset($post->post_status) && !$draft_or_pending ) ) |
203 | | $post_link = add_query_arg($post_type->query_var, $slug, ''); |
| 203 | $post_link = add_query_arg($post_type->query_var, '%postname%', ''); |
204 | 204 | else |
205 | 205 | $post_link = add_query_arg(array('post_type' => $post->post_type, 'p' => $post->ID), ''); |
206 | 206 | $post_link = home_url($post_link); |