From ebe0f5502bf2024ab776f713ad7cf11c095447e5 Mon Sep 17 00:00:00 2001 From: Aris Karageorgos Date: Tue, 21 Jun 2016 16:12:11 +0700 Subject: [PATCH] Load Ace only on admin settings pages This solves and issue with visual composer and possibly other plugins which also attempt to load Ace. --- lib/class-option-code.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/class-option-code.php b/lib/class-option-code.php index 263ecc6f..ce9e4ca4 100644 --- a/lib/class-option-code.php +++ b/lib/class-option-code.php @@ -61,7 +61,7 @@ class TitanFrameworkOptionCode extends TitanFrameworkOption { function __construct( $settings, $owner ) { parent::__construct( $settings, $owner ); - add_action( 'admin_enqueue_scripts', array( $this, 'loadAdminScripts' ) ); + add_action('tf_admin_page_before', array( $this, 'loadAdminScripts' ) ); add_action( 'customize_controls_enqueue_scripts', array( $this, 'loadAdminScripts' ) ); // CSS generation for CSS code langs