mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
git-svn-id: https://develop.svn.wordpress.org/trunk@21664 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -41,9 +41,7 @@ if ( 'publish' == $post->post_status ) {
|
||||
$preview_link = esc_url( get_permalink( $post->ID ) );
|
||||
$preview_button = __( 'Preview Changes' );
|
||||
} else {
|
||||
$preview_link = get_permalink( $post->ID );
|
||||
if ( is_ssl() )
|
||||
$preview_link = str_replace( 'http://', 'https://', $preview_link );
|
||||
$preview_link = set_url_scheme( get_permalink( $post->ID ) );
|
||||
$preview_link = esc_url( apply_filters( 'preview_post_link', add_query_arg( 'preview', 'true', $preview_link ) ) );
|
||||
$preview_button = __( 'Preview' );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user