From 3736e6b3f9e6a407a0b16df67fea9e6a6968bb93 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Mon, 18 Aug 2014 02:42:17 +0000 Subject: [PATCH] Media Modal: don't show the "Edit Image" button for attachments that don't have `data.sizes` set. Fixes #28038. Built from https://develop.svn.wordpress.org/trunk@29529 git-svn-id: http://core.svn.wordpress.org/trunk@29305 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/media-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/media-template.php b/wp-includes/media-template.php index 71bfc2809e..e524fc18ee 100644 --- a/wp-includes/media-template.php +++ b/wp-includes/media-template.php @@ -497,7 +497,7 @@ function wp_print_media_templates() {
{{ data.width }} × {{ data.height }}
<# } #> - <# if ( data.can.save ) { #> + <# if ( data.can.save && data.sizes ) { #> <# } #>