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

Fixes #44620


git-svn-id: https://develop.svn.wordpress.org/trunk@43601 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn 2018-08-31 10:51:00 +00:00
parent 9db8106f92
commit 2eb9362782
1 changed files with 1 additions and 1 deletions

View File

@ -454,7 +454,7 @@ function wp_print_media_templates() {
<div class="actions"> <div class="actions">
<a class="view-attachment" href="{{ data.link }}"><?php _e( 'View attachment page' ); ?></a> <a class="view-attachment" href="{{ data.link }}"><?php _e( 'View attachment page' ); ?></a>
<# if ( data.can.save ) { #> | <# if ( data.can.save ) { #> |
<a href="post.php?post={{ data.id }}&action=edit"><?php _e( 'Edit more details' ); ?></a> <a href="{{ data.editLink }}"><?php _e( 'Edit more details' ); ?></a>
<# } #> <# } #>
<# if ( ! data.uploading && data.can.remove ) { #> | <# if ( ! data.uploading && data.can.remove ) { #> |
<?php if ( MEDIA_TRASH ) : ?> <?php if ( MEDIA_TRASH ) : ?>