Make WordPress Core

Changeset 52646


Ignore:
Timestamp:
01/27/2022 10:16:00 PM (3 years ago)
Author:
audrasjb
Message:

Media: Remove target blank attribute from media uploader edit links.

This change removes a dispensable target blank attribute from Edit links displayed in the asynchronous file uploader.

Follow-up to [22755].

Props kebbet, SergeyBiryukov.
Fixes #54945.
See #23432.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/async-upload.php

    r51195 r52646  
    7575                    <?php
    7676                    if ( current_user_can( 'edit_post', $id ) ) {
    77                         echo '<a class="edit-attachment" href="' . esc_url( get_edit_post_link( $id ) ) . '" target="_blank">' . _x( 'Edit', 'media item' ) . '</a>';
     77                        echo '<a class="edit-attachment" href="' . esc_url( get_edit_post_link( $id ) ) . '">' . _x( 'Edit', 'media item' ) . '</a>';
    7878                    } else {
    7979                        echo '<span class="edit-attachment">' . _x( 'Success', 'media item' ) . '</span>';
Note: See TracChangeset for help on using the changeset viewer.