diff --git a/wp-includes/media-template.php b/wp-includes/media-template.php index 8a038337e2..14e78f5cb7 100644 --- a/wp-includes/media-template.php +++ b/wp-includes/media-template.php @@ -312,7 +312,7 @@ function wp_print_media_templates() { <# } #>
- <# if ( 'image' === data.type && ! data.uploading && data.sizes ) { #> + <# if ( 'image' === data.type && ! data.uploading && data.sizes && data.can.save ) { #> <# } #>
@@ -408,19 +408,21 @@ function wp_print_media_templates() {
- | - + + <# if ( data.can.save ) { #> | + + <# } #> <# if ( ! data.uploading && data.can.remove ) { #> | - + <# if ( 'trash' === data.status ) { #> <# } else { #> <# } #> - - - - <# } #> + + + + <# } #>