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
This commit is contained in:
John Blackbourn 2014-07-03 18:47:33 +00:00
parent 14bfade4ec
commit c18a28f792
1 changed files with 1 additions and 0 deletions

View File

@ -2528,6 +2528,7 @@ function wp_ajax_query_themes() {
$theme->version = wp_kses( $theme->version, $themes_allowedtags ); $theme->version = wp_kses( $theme->version, $themes_allowedtags );
$theme->description = wp_kses( $theme->description, $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->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 ); wp_send_json_success( $api );