Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ai
noblogs-wp
Commits
7dc5c3fa
Commit
7dc5c3fa
authored
Dec 30, 2018
by
lucha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable-updates plugin 1.6.3
parent
fbef8a0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
wp-content/mu-plugins/disable-updates.php
wp-content/mu-plugins/disable-updates.php
+6
-6
No files found.
wp-content/mu-plugins/disable-updates.php
View file @
7dc5c3fa
...
...
@@ -10,12 +10,12 @@
Plugin Name: Disable All WordPress Updates
Description: Disables the theme, plugin and core update checking, the related cronjobs and notification system.
Plugin URI: https://wordpress.org/plugins/disable-wordpress-updates/
Version: 1.6.
2
Version: 1.6.
3
Author: Oliver Schlöbe
Author URI: https://www.schloebe.de/
License: GPL2
Copyright 2013-201
7
Oliver Schlöbe (email : scripts@schloebe.de)
Copyright 2013-201
8
Oliver Schlöbe (email : scripts@schloebe.de)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
...
...
@@ -37,7 +37,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
/**
* Define the plugin version
*/
define
(
"OSDWPUVERSION"
,
"1.6.
2
"
);
define
(
"OSDWPUVERSION"
,
"1.6.
3
"
);
/**
...
...
@@ -100,7 +100,9 @@ class OS_Disable_WordPress_Updates {
* @link https://wordpress.org/support/topic/possible-performance-improvement/#post-8970451
*/
add_action
(
'schedule_event'
,
array
(
$this
,
'filter_cron_events'
));
add_action
(
'pre_set_site_transient_update_plugins'
,
array
(
$this
,
'last_checked_atm'
),
21
,
1
);
add_action
(
'pre_set_site_transient_update_themes'
,
array
(
$this
,
'last_checked_atm'
),
21
,
1
);
/*
* Disable All Automatic Updates
...
...
@@ -122,7 +124,6 @@ class OS_Disable_WordPress_Updates {
add_filter
(
'automatic_updates_send_debug_email'
,
'__return_false'
);
add_filter
(
'automatic_updates_is_vcs_checkout'
,
'__return_true'
);
add_filter
(
'automatic_updates_send_debug_email '
,
'__return_false'
,
1
);
if
(
!
defined
(
'AUTOMATIC_UPDATER_DISABLED'
)
)
define
(
'AUTOMATIC_UPDATER_DISABLED'
,
true
);
if
(
!
defined
(
'WP_AUTO_UPDATE_CORE'
)
)
define
(
'WP_AUTO_UPDATE_CORE'
,
false
);
...
...
@@ -194,7 +195,6 @@ class OS_Disable_WordPress_Updates {
* Disable Core Updates
* 2.8 to 3.0
*/
add_action
(
'init'
,
create_function
(
''
,
'remove_action( \'init\', \'wp_version_check\' );'
),
2
);
add_filter
(
'pre_option_update_core'
,
'__return_null'
);
remove_action
(
'wp_version_check'
,
'wp_version_check'
);
...
...
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