modified plugin Cloudron Managed WordPress
version 1.0.0
This commit is contained in:
parent
3053837189
commit
7b5257d924
23
wp-content/plugins/cloudron/cloudron.php
Normal file
23
wp-content/plugins/cloudron/cloudron.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Cloudron_Managed_WordPress
|
||||
* @version 1.0.0
|
||||
*/
|
||||
/*
|
||||
Plugin Name: Cloudron Managed WordPress
|
||||
Plugin URI: https://cloudron.io/store/org.wordpress.cloudronapp.html
|
||||
Description: This plugin disables core updates of WordPress. Cloudron team will test new version of WordPress and will push package updates.
|
||||
Author: Cloudron team
|
||||
Version: 1.0.0
|
||||
Author URI: http://cloudron.io
|
||||
*/
|
||||
|
||||
// https://carlofontanos.com/disable-update-notifications-in-wordpress-admin/
|
||||
function cloudron_remove_wp_core_updates() {
|
||||
global $wp_version;
|
||||
return(object) array('last_checked' => time(),'version_checked' => $wp_version);
|
||||
}
|
||||
|
||||
// Core Notifications
|
||||
add_filter('pre_site_transient_update_core','cloudron_remove_wp_core_updates');
|
||||
|
Loading…
Reference in New Issue
Block a user