From 114b004701222ea10f36dcc9e03287a724e0cba4 Mon Sep 17 00:00:00 2001 From: Kaspars Date: Mon, 14 Dec 2015 16:46:35 +0200 Subject: [PATCH] Init after global wp_scripts and wp_styles are available --- minit.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/minit.php b/minit.php index 6b11f8a..0b0f99f 100644 --- a/minit.php +++ b/minit.php @@ -33,8 +33,8 @@ protected function __construct() { $this->plugin_file = __FILE__; - add_action( 'init', array( $this, 'init' ) ); - add_action( 'admin_init', array( $this, 'admin_init' ) ); + add_action( 'wp', array( $this, 'init' ) ); + add_action( 'init', array( $this, 'admin_init' ) ); // This action can used to delete all Minit cache files from cron add_action( 'minit-cache-purge-delete', array( $this, 'cache_delete' ) );