Skip to content

Commit 2eb9362

Browse files
committed
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
1 parent 9db8106 commit 2eb9362

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/media-template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ function wp_print_media_templates() {
454454
<div class="actions">
455455
<a class="view-attachment" href="{{ data.link }}"><?php _e( 'View attachment page' ); ?></a>
456456
<# if ( data.can.save ) { #> |
457-
<a href="http://github.com/%3Cspan%20class="x x-first x-last">post.php?post={{ data.id }}&action=edit"><?php _e( 'Edit more details' ); ?></a>
457+
<a href="http://github.com/%7B%7B%20data.%3Cspan%20class="x x-first x-last">editLink }}"><?php _e( 'Edit more details' ); ?></a>
458458
<# } #>
459459
<# if ( ! data.uploading && data.can.remove ) { #> |
460460
<?php if ( MEDIA_TRASH ) : ?>

0 commit comments

Comments
 (0)