diff --git a/wp-admin/themes.php b/wp-admin/themes.php index 6550dfda95..f008307ebb 100644 --- a/wp-admin/themes.php +++ b/wp-admin/themes.php @@ -129,7 +129,7 @@ function theme_update_available( $theme ) {

screenshot ) : ?> -<?php _e('Current theme preview'); ?> +<?php _e('Current theme preview'); ?>

$theme_name ) { $stylesheet_dir = $themes[$theme_name]['Stylesheet Dir']; $template_dir = $themes[$theme_name]['Template Dir']; $parent_theme = $themes[$theme_name]['Parent Theme']; - $preview_link = esc_url( get_option('home') . '/'); + $preview_link = esc_url(get_option('home') . '/'); + if ( is_ssl() ) + $preview_link = str_replace( 'http://', 'https://', $preview_link ); $preview_link = htmlspecialchars( add_query_arg( array('preview' => 1, 'template' => $template, 'stylesheet' => $stylesheet, 'TB_iframe' => 'true' ), $preview_link ) ); $preview_text = esc_attr( sprintf( __('Preview of “%s”'), $title ) ); $tags = $themes[$theme_name]['Tags']; @@ -218,7 +220,7 @@ foreach ( $cols as $col => $theme_name ) { ?> - +