Skip to content
Snippets Groups Projects
Commit 2b025cd0 authored by lucha's avatar lucha
Browse files

Patched Disable Updates to run checks during cron jobs

parent 7eb78a57
No related branches found
No related tags found
No related merge requests found
...@@ -65,6 +65,7 @@ class OS_Disable_WordPress_Updates { ...@@ -65,6 +65,7 @@ class OS_Disable_WordPress_Updates {
$this->__pluginsFiles = array(); $this->__pluginsFiles = array();
$this->__themeFiles = array(); $this->__themeFiles = array();
if (!defined('AI_CRON_SCRIPT')) {
add_action( 'admin_init', array(&$this, 'admin_init') ); add_action( 'admin_init', array(&$this, 'admin_init') );
/* /*
...@@ -127,6 +128,7 @@ class OS_Disable_WordPress_Updates { ...@@ -127,6 +128,7 @@ class OS_Disable_WordPress_Updates {
add_filter( 'pre_http_request', array($this, 'block_request'), 10, 3 ); add_filter( 'pre_http_request', array($this, 'block_request'), 10, 3 );
} }
}
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment