Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ai
noblogs-wp
Commits
fa43eddd
Commit
fa43eddd
authored
Apr 19, 2017
by
lucha
Committed by
agata
Oct 17, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patched Disable Updates to run checks during cron jobs
parent
7695fa80
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
wp-content/mu-plugins/disable-updates.php
wp-content/mu-plugins/disable-updates.php
+12
-9
No files found.
wp-content/mu-plugins/disable-updates.php
View file @
fa43eddd
...
...
@@ -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'
)
);
/*
...
...
@@ -130,6 +132,7 @@ class OS_Disable_WordPress_Updates {
add_filter
(
'pre_http_request'
,
array
(
$this
,
'block_request'
),
10
,
3
);
}
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment