Add debug mode for extensions updater

Introduced the `UM_UPDATER_DEBUG` constant to enable debugging for upgrade packages. This facilitates easier troubleshooting and testing during update processes.
This commit is contained in:
Mykyta Synelnikov
2025-11-03 17:58:53 +02:00
parent c2da11ff0a
commit fb3a296fc8
2 changed files with 3 additions and 0 deletions
@@ -47,6 +47,8 @@ class Extensions_Updater {
'complete' => 'um_' . $this->updater_data['slug'] . '_package_complete',
);
$debug = defined( 'UM_UPDATER_DEBUG' ) && UM_UPDATER_DEBUG;
include_once $file_path;
/**
* IMPORTANT!!!: Last action that we need to do after package is complete.
+1
View File
@@ -36,6 +36,7 @@ define( 'UM_VERSION', $plugin_data['Version'] );
define( 'UM_PLUGIN_NAME', $plugin_data['Name'] );
define( 'UM_WP_FUNCTIONS_VERSION', '6.8.0' ); // Updates every major WordPress release.
define( 'UM_LICENSE_REQUEST_DEBUG', false ); // Set true then need to debug the license request.
define( 'UM_UPDATER_DEBUG', false ); // Set true then need to debug the upgrade packages.
// define( 'UM_DEV_MODE', true );
require_once 'includes/class-functions.php';