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 ) { |