From 0f12a87e311d06d273d73ca612876ac0ccfe97ab Mon Sep 17 00:00:00 2001 From: Ian Date: Sun, 20 Dec 2015 17:31:51 +0100 Subject: [PATCH] fix 'backend_save' hooked script to only apply on save condition --- include/plugin_api.inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/plugin_api.inc.php b/include/plugin_api.inc.php index 8bcb702c..f4d895f0 100644 --- a/include/plugin_api.inc.php +++ b/include/plugin_api.inc.php @@ -93,7 +93,10 @@ function errorHandlerCreateDOM(htmlStr) { case 'backend_save': case 'backend_publish': - echo "\n".''."\n"; + // this is preview_iframe.tpl updertHooks [ NOT ONLY!! See freetags ] + if ($_GET['serendipity']['is_iframe'] == 'true' && $_GET['serendipity']['iframe_mode'] == 'save') { + echo "\n".''."\n"; + } break; }