mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
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:
@@ -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.
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user