From 4808b06e4756ffdcbcb8f0c30f33619ab861a9a2 Mon Sep 17 00:00:00 2001 From: MrMaz Date: Mon, 8 Jun 2015 14:48:22 -0400 Subject: [PATCH] moved upgrade trigger to admin_init action. firing on activation was unreliable see PressCrew/infinity-cbox#2 --- src/engine/ICE/loader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/ICE/loader.php b/src/engine/ICE/loader.php index 9290c30e..14270070 100644 --- a/src/engine/ICE/loader.php +++ b/src/engine/ICE/loader.php @@ -82,7 +82,7 @@ final static public function init( $ice_slug, $ice_url ) // add theme activation callback add_action( 'load-themes.php', array( __CLASS__, 'do_activated_actions' ) ); // add upgrade callback - add_action( 'ice_theme_activated', array( __CLASS__, 'upgrade' ), 1 ); + add_action( 'admin_init', array( __CLASS__, 'upgrade' ), 1 ); } } }