From bec65b375b5731992273eab289bd1bf68a49a6eb Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 23 Jan 2017 10:33:00 -0800 Subject: [PATCH] Optimization: reduce shortcode loading in admin area. --- e107_handlers/shortcode_handler.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/e107_handlers/shortcode_handler.php b/e107_handlers/shortcode_handler.php index 00ad25328..1de80dcdc 100644 --- a/e107_handlers/shortcode_handler.php +++ b/e107_handlers/shortcode_handler.php @@ -107,10 +107,15 @@ class e_parse_shortcode // $_SESSION['editable'] = array(); $this->ignoreCodes = e107::getParser()->getUrlConstants(); // ignore all URL shortcodes. ie. {e_PLUGIN} - $this->loadOverrideShortcodes(); - $this->loadThemeShortcodes(); - $this->loadPluginShortcodes(); - $this->loadPluginSCFiles(); + + if(e_ADMIN_AREA !== true) + { + $this->loadOverrideShortcodes(); + $this->loadThemeShortcodes(); + $this->loadPluginShortcodes(); + $this->loadPluginSCFiles(); + + } //$this->loadCoreShortcodes(); DEPRECATED $editableActivePref = e107::getPref('inline_editing',255);