Make WordPress Core

Changeset 43601 for trunk


Ignore:
Timestamp:
08/31/2018 10:51:00 AM (7 years ago)
Author:
johnbillion
Message:

Media: Ensure the "Edit more details" link in the attachment details modal always points to the correct editing URL.

Fixes #44620

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/media-template.php

    r43571 r43601  
    455455                <a class="view-attachment" href="{{ data.link }}"><?php _e( 'View attachment page' ); ?></a>
    456456                <# if ( data.can.save ) { #> |
    457                     <a href="post.php?post={{ data.id }}&action=edit"><?php _e( 'Edit more details' ); ?></a>
     457                    <a href="{{ data.editLink }}"><?php _e( 'Edit more details' ); ?></a>
    458458                <# } #>
    459459                <# if ( ! data.uploading && data.can.remove ) { #> |
Note: See TracChangeset for help on using the changeset viewer.