diff --git a/src/wp-includes/canonical.php b/src/wp-includes/canonical.php
index 4d373e13bd..ed81d93ff8 100644
a
|
b
|
function redirect_canonical( $requested_url = null, $do_redirect = true ) { |
56 | 56 | } |
57 | 57 | } |
58 | 58 | |
59 | | if ( is_trackback() || is_search() || is_admin() || is_preview() || is_robots() || is_favicon() || ( $is_IIS && ! iis7_supports_permalinks() ) ) { |
| 59 | if ( is_trackback() || is_search() || is_admin() || is_preview() || is_robots() || is_favicon() || 'future' == get_post_status( get_query_var( 'p' ) ) || ( $is_IIS && ! iis7_supports_permalinks() ) ) { |
60 | 60 | return; |
61 | 61 | } |
62 | 62 | diff --git a/src/wp-includes/link-template.php b/src/wp-includes/link-template.php |
index 9dbbf4931f..eefc966114 100644
a
|
b
|
function get_permalink( $post = 0, $leavename = false ) { |
165 | 165 | */ |
166 | 166 | $permalink = apply_filters( 'pre_post_link', $permalink, $post, $leavename ); |
167 | 167 | |
168 | | if ( '' != $permalink && ! in_array( $post->post_status, array( 'draft', 'pending', 'auto-draft', 'future' ), true ) ) { |
| 168 | if ( '' != $permalink && ! in_array( $post->post_status, array( 'draft', 'pending', 'auto-draft' ), true ) ) { |
169 | 169 | |
170 | 170 | $category = ''; |
171 | 171 | if ( strpos( $permalink, '%category%' ) !== false ) { |