Modified Core Files:

wp-admin/includes/update.php
wp-admin/update-core.php
wp-admin/includes/class-wp-upgrader.php

These files were only changed on WordPress sites that were installed using cPanel’s Site
Software addon.

WordPress’ update.php file.
function get_core_updates( $options = array() ) { $options = array_merge(
array( 'available' => true, 'dismissed' => false ), $options ); $dismissed
= get_site_option( 'dismissed_update_core' );
cPanel’s update.php file.
function get_core_updates( $options = array() ) { # cPanel override:
Disable all core updates to prevent conflict with cPAddons. return false;
$options = array_merge( array( 'available' => true, 'dismissed' => false ),
$options );
WordPress’ update-core.php file.
function core_upgrade_preamble() { global $wp_version,
$required_php_version, $required_mysql_version; $updates =
get_core_updates();
cPanel’s update-core.php file.
function core_upgrade_preamble() { # cPanel override: Do not display the
current or the latest version, because we've disabled updates. return;
global $wp_version, $required_php_version, $required_mysql_version;
$updates = get_core_updates();
WordPress’ class-wp-upgrader.php file.
public function is_disabled() { // Background updates are disabled if you
don't want file changes. if ( defined( 'DISALLOW_FILE_MODS' ) &&
DISALLOW_FILE_MODS ) return true;
cPanel’s class-wp-upgrader.php file.
public function is_disabled() { return true; // Force this functionality to
disabled because it is incompatible with cPAddons. // Background updates
are disabled if you don't want file changes. if ( defined(
'DISALLOW_FILE_MODS' ) && DISALLOW_FILE_MODS ) return true;

Leave a Reply

Your email address will not be published. Required fields are marked *