WordPress.org

Make WordPress Core

Ticket #21919: 21919.diff

File 21919.diff, 663 bytes (added by johnbillion, 5 years ago)
  • src/wp-admin/includes/ajax-actions.php

     
    25282528                $theme->version     = wp_kses( $theme->version, $themes_allowedtags );
    25292529                $theme->description = wp_kses( $theme->description, $themes_allowedtags );
    25302530                $theme->num_ratings = sprintf( _n( '(based on %s rating)', '(based on %s ratings)', $theme->num_ratings ), number_format_i18n( $theme->num_ratings ) );
     2531                $theme->preview_url = set_url_scheme( $theme->preview_url );
    25312532        }
    25322533
    25332534        wp_send_json_success( $api );