Make WordPress Core

Ticket #35407: 35407.1.diff

File 35407.1.diff, 591 bytes (added by danielbachhuber, 9 years ago)
  • src/wp-includes/link-template.php

    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 
    12081208        $post_type_object = get_post_type_object( $post->post_type );
    12091209        if ( is_post_type_viewable( $post_type_object ) ) {
    12101210                if ( ! $preview_link ) {
    1211                         $preview_link = get_permalink( $post );
     1211                        $preview_link = set_url_scheme( get_permalink( $post ) );
    12121212                }
    12131213
    12141214                $query_args['preview'] = 'true';