mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 23:00:21 +00:00
Media: Add link to the original image in the image properties if it was scaled or rotated after uploading.
Fixes #49290. git-svn-id: https://develop.svn.wordpress.org/trunk@47202 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -425,6 +425,11 @@ function wp_print_media_templates() {
|
||||
?>
|
||||
</div>
|
||||
<# } #>
|
||||
|
||||
<# if ( data.originalImageURL && data.originalImageName ) { #>
|
||||
<?php _e( 'Original image:' ); ?>
|
||||
<a href="{{ data.originalImageURL }}">{{data.originalImageName}}</a>
|
||||
<# } #>
|
||||
<# } #>
|
||||
|
||||
<# if ( data.fileLength && data.fileLengthHumanReadable ) { #>
|
||||
@@ -616,6 +621,11 @@ function wp_print_media_templates() {
|
||||
</div>
|
||||
<# } #>
|
||||
|
||||
<# if ( data.originalImageURL && data.originalImageName ) { #>
|
||||
<?php _e( 'Original image:' ); ?>
|
||||
<a href="{{ data.originalImageURL }}">{{data.originalImageName}}</a>
|
||||
<# } #>
|
||||
|
||||
<# if ( data.can.save && data.sizes ) { #>
|
||||
<a class="edit-attachment" href="{{ data.editLink }}&image-editor" target="_blank"><?php _e( 'Edit Image' ); ?></a>
|
||||
<# } #>
|
||||
|
||||
Reference in New Issue
Block a user