mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +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:
@@ -3391,6 +3391,17 @@ function attachment_submitbox_metadata() {
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
||||
if ( ! empty( $meta['original_image'] ) ) {
|
||||
?>
|
||||
<div class="misc-pub-section misc-pub-original-image">
|
||||
<?php _e( 'Original image:' ); ?>
|
||||
<a href="<?php echo esc_url( wp_get_original_image_url( $attachment_id ) ); ?>">
|
||||
<?php echo esc_html( wp_basename( wp_get_original_image_path( $attachment_id ) ) ); ?>
|
||||
</a>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user