From c18a28f792ff166e57cbac2fb47c622673822153 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Thu, 3 Jul 2014 18:47:33 +0000 Subject: [PATCH] Use the admin scheme for theme preview URLs when installing new themes. See #21919. git-svn-id: https://develop.svn.wordpress.org/trunk@28974 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/ajax-actions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wp-admin/includes/ajax-actions.php b/src/wp-admin/includes/ajax-actions.php index 77dabad840..640ce5ff3d 100644 --- a/src/wp-admin/includes/ajax-actions.php +++ b/src/wp-admin/includes/ajax-actions.php @@ -2528,6 +2528,7 @@ function wp_ajax_query_themes() { $theme->version = wp_kses( $theme->version, $themes_allowedtags ); $theme->description = wp_kses( $theme->description, $themes_allowedtags ); $theme->num_ratings = sprintf( _n( '(based on %s rating)', '(based on %s ratings)', $theme->num_ratings ), number_format_i18n( $theme->num_ratings ) ); + $theme->preview_url = set_url_scheme( $theme->preview_url ); } wp_send_json_success( $api );