Media Grid: Add a View button to Attachment Details modal.

props adamsilverstein.
fixes #28977.
Built from https://develop.svn.wordpress.org/trunk@29262


git-svn-id: http://core.svn.wordpress.org/trunk@29045 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov
2014-07-22 01:30:16 +00:00
parent b9222c9e1e
commit 8923bb0c0e
4 changed files with 13 additions and 3 deletions

View File

@@ -297,6 +297,8 @@ function wp_print_media_templates() {
<a class="button edit-image" href="#"><?php _e( 'Edit Image' ); ?></a>
<# } #>
<a class="button view-attachment" href="#"><?php _e( 'View' ); ?></a>
<# if ( ! data.uploading && data.can.remove ) { #>
<?php if ( MEDIA_TRASH ): ?>
<a class="trash-attachment" href="#"><?php _e( 'Trash' ); ?></a>