diff --git a/src/wp-includes/link-template.php b/src/wp-includes/link-template.php
index b580a0a..cfe53e3 100644
a
|
b
|
function get_preview_post_link( $post = null, $query_args = array(), $preview_li |
1208 | 1208 | $post_type_object = get_post_type_object( $post->post_type ); |
1209 | 1209 | if ( is_post_type_viewable( $post_type_object ) ) { |
1210 | 1210 | if ( ! $preview_link ) { |
1211 | | $preview_link = get_permalink( $post ); |
| 1211 | $preview_link = set_url_scheme( get_permalink( $post ) ); |
1212 | 1212 | } |
1213 | 1213 | |
1214 | 1214 | $query_args['preview'] = 'true'; |