From 9f5bb43f410507857546d17d09eca79bdcc9e6a2 Mon Sep 17 00:00:00 2001 From: demmel Date: Wed, 9 Mar 2016 13:54:16 +0100 Subject: [PATCH] Check if at least one image size has crop enabled to avoid silent failure due to invalid JavaScript --- lib/ManualImageCropEditorWindow.php | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/lib/ManualImageCropEditorWindow.php b/lib/ManualImageCropEditorWindow.php index 812d8ce..8832fdb 100644 --- a/lib/ManualImageCropEditorWindow.php +++ b/lib/ManualImageCropEditorWindow.php @@ -27,12 +27,25 @@ public function renderWindow() { $sizesSettings = MicSettingsPage::getSettings(); ?>
+ +

+

true) or set_post_thumbnail_size(x,y,true)', 'microp'); ?>

+