WordPress.org

Make WordPress Core

Ticket #22604: 22604.diff

File 22604.diff, 940 bytes (added by nacin, 8 years ago)
  • wp-admin/async-upload.php

     
    4141                case 3 :
    4242                        if ( $thumb_url = wp_get_attachment_image_src( $id, 'thumbnail', true ) )
    4343                                echo '<img class="pinkynail" src="' . esc_url( $thumb_url[0] ) . '" alt="" />';
    44                         echo '<a class="edit-attachment" href="' . esc_url( get_edit_post_link( $id ) ) . '" target="_blank">' . _x( 'Edit', 'media item' ) . '</a>';
     44                        echo '<a class="edit-attachment" href="' . esc_url( get_edit_post_link( $id ) ) . '">' . _x( 'Edit', 'media item' ) . '</a>';
    4545                        $title = $post->post_title ? $post->post_title : wp_basename( $post->guid ); // title shouldn't ever be empty, but use filename just in cas.e
    4646                        echo '<div class="filename new"><span class="title">' . esc_html( wp_html_excerpt( $title, 60 ) ) . '</span></div>';
    4747                        break;