From 9d5fa1ebcbbf43dcbf76ce3c3d69fed063e5d2fc Mon Sep 17 00:00:00 2001 From: John Stray Date: Thu, 24 Mar 2016 18:35:01 +0930 Subject: [PATCH] Allow for compatibility with plugins Created an on-th-fly array of permissible filename ids to allow both 'edit' and 'load' (plugin loader) so that plugins that use the CKeditor can also benefit from the updated (patched) CKeditor. --- GSCkePatch.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GSCkePatch.php b/GSCkePatch.php index 116e95d..7751df9 100644 --- a/GSCkePatch.php +++ b/GSCkePatch.php @@ -26,7 +26,7 @@ function init_GSCkePatch($pluginid){ init_GSCkePatch($pluginid); -if(get_filename_id() == 'edit' && $HTMLEDITOR){ +if(in_array(get_filename_id(),array('edit','load')) && $HTMLEDITOR){ add_action("header",$pluginid.'_header',$pluginid); add_action("edit-content",$pluginid.'_edit_content'); } @@ -44,4 +44,4 @@ function GSCkePatch_header($pluginid){ echo ''; } -?> \ No newline at end of file +?>