Make WordPress Core

Ticket #41353: 41353.patch

File 41353.patch, 729 bytes (added by bhargavbhandari90, 8 years ago)

This will be the solution

  • wp-admin/async-upload.php

     
    5959        switch ( $_REQUEST['fetch'] ) {
    6060                case 3 :
    6161                        if ( $thumb_url = wp_get_attachment_image_src( $id, 'thumbnail', true ) )
    62                                 echo '<img class="pinkynail" src="' . esc_url( $thumb_url[0] ) . '" alt="" />';
     62                                echo '<img class="pinkynail" src="' . set_url_scheme( $thumb_url[0] ) . '" alt="" />';
    6363                        echo '<a class="edit-attachment" href="' . esc_url( get_edit_post_link( $id ) ) . '" target="_blank">' . _x( 'Edit', 'media item' ) . '</a>';
    6464
    6565                        // Title shouldn't ever be empty, but use filename just in case.