d9673460 by Jeff Balicki

fix errors

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent c6fc83ca
...@@ -10,9 +10,19 @@ defined( 'ABSPATH' ) || exit; ...@@ -10,9 +10,19 @@ defined( 'ABSPATH' ) || exit;
10 10
11 11
12 add_filter( 'auto_update_plugin', '__return_false' ); 12 add_filter( 'auto_update_plugin', '__return_false' );
13 add_filter('pre_site_transient_update_plugins','remove_core_updates');
14 add_filter( 'auto_update_theme', '__return_false' ); 13 add_filter( 'auto_update_theme', '__return_false' );
15 add_filter('pre_site_transient_update_themes','remove_core_updates'); 14
15
16 function remove_core_updates () {
17 global $wp_version;
18 return(object) array(
19 'last_checked'=> time(),
20 'version_checked'=> $wp_version
21 );
22 }
23 add_filter('pre_site_transient_update_core','remove_core_updates');
24 add_filter('pre_site_transient_update_plugins','remove_core_updates');
25 add_filter('pre_site_transient_update_themes','remove_core_updates');
16 26
17 add_filter( 'auto_core_update_send_email', 'smartwp_disable_core_update_emails', 10, 4 ); 27 add_filter( 'auto_core_update_send_email', 'smartwp_disable_core_update_emails', 10, 4 );
18 function smartwp_disable_core_update_emails( $send, $type, $core_update, $result ) { 28 function smartwp_disable_core_update_emails( $send, $type, $core_update, $result ) {
......