Commit 7dc5c3fa authored by lucha's avatar lucha

Disable-updates plugin 1.6.3

parent fbef8a0d
......@@ -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-2017 Oliver Schlöbe (email : scripts@schloebe.de)
Copyright 2013-2018 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' );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment