Skip to content

Commit

Permalink
moved upgrade trigger to admin_init action. firing on activation was …
Browse files Browse the repository at this point in the history
…unreliable

see PressCrew/infinity-cbox#2
  • Loading branch information
MrMaz committed Jun 8, 2015
1 parent 0c2b4f9 commit 4808b06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine/ICE/loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
}
}
Expand Down

0 comments on commit 4808b06

Please sign in to comment.