Skip to content
Snippets Groups Projects
Commit 30e8d072 authored by lucha's avatar lucha
Browse files

Patched Disable Updates to run checks during cron jobs

parent ee83e5a7
No related branches found
Tags
No related merge requests found
......@@ -59,6 +59,8 @@ class OS_Disable_WordPress_Updates {
* @author scripts@schloebe.de
*/
function __construct() {
if (!defined('AI_CRON_SCRIPT')) {
add_action( 'admin_init', array(&$this, 'admin_init') );
/*
......@@ -129,6 +131,7 @@ class OS_Disable_WordPress_Updates {
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