WordPress.org

Make WordPress Core

Ticket #40125: 40125.patch

File 40125.patch, 781 bytes (added by abhishekfdd, 5 years ago)

patch to fix the issue

  • wp-admin/async-upload.php

     
    6060                case 3 :
    6161                        if ( $thumb_url = wp_get_attachment_image_src( $id, 'thumbnail', true ) )
    6262                                echo '<img class="pinkynail" src="' . esc_url( $thumb_url[0] ) . '" alt="" />';
    63                         echo '<a class="edit-attachment" href="' . esc_url( get_edit_post_link( $id ) ) . '" target="_blank">' . _x( 'Edit', 'media item' ) . '</a>';
     63                        echo '<a class="edit-attachment" href="' . esc_url( get_edit_post_link( $id ) ) . '" >' . _x( 'Edit', 'media item' ) . '</a>';
    6464
    6565                        // Title shouldn't ever be empty, but use filename just in case.
    6666                        $file = get_attached_file( $post->ID );