WordPress.org

Make WordPress Core

Ticket #20534: 20534.diff

File 20534.diff, 696 bytes (added by justindgivens, 2 years ago)

Patch for 20534

  • wp-admin/includes/post.php

     
    11551155                        $thumbnail_html = wp_get_attachment_image( $thumbnail_id, array( $content_width, $content_width ) ); 
    11561156                else 
    11571157                        $thumbnail_html = wp_get_attachment_image( $thumbnail_id, 'post-thumbnail' ); 
     1158                if ( force_ssl_admin() ) { 
     1159                        $thumbnail_html = str_replace('http://', 'https://', $thumbnail_html); 
     1160                } 
    11581161                if ( !empty( $thumbnail_html ) ) { 
    11591162                        $ajax_nonce = wp_create_nonce( "set_post_thumbnail-$post_id" ); 
    11601163                        $content = sprintf($set_thumbnail_link, $thumbnail_html);