From 0499d74506f3c7d231041d9a197d2c578f43286e Mon Sep 17 00:00:00 2001 From: Andy Fragen Date: Mon, 16 Jun 2025 13:22:12 -0700 Subject: [PATCH] Make priority later to override GU data, pref to GUL if present (#97) --- inc/updater/class-lite.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/updater/class-lite.php b/inc/updater/class-lite.php index 3a8c16f..79bd75d 100644 --- a/inc/updater/class-lite.php +++ b/inc/updater/class-lite.php @@ -157,7 +157,7 @@ if ( ! class_exists( 'Fragen\\Git_Updater\\Lite' ) ) { $type = $this->api_data->type; add_filter( 'upgrader_source_selection', array( $this, 'upgrader_source_selection' ), 10, 4 ); add_filter( "{$type}s_api", array( $this, 'repo_api_details' ), 99, 3 ); - add_filter( "site_transient_update_{$type}s", array( $this, 'update_site_transient' ), 15, 1 ); + add_filter( "site_transient_update_{$type}s", array( $this, 'update_site_transient' ), 20, 1 ); if ( ! is_multisite() ) { add_filter( 'wp_prepare_themes_for_js', array( $this, 'customize_theme_update_html' ) ); } @@ -166,7 +166,7 @@ if ( ! class_exists( 'Fragen\\Git_Updater\\Lite' ) ) { add_filter( 'upgrader_pre_download', function () { - add_filter( 'http_request_args', array( $this, 'add_auth_header' ), 15, 2 ); + add_filter( 'http_request_args', array( $this, 'add_auth_header' ), 20, 2 ); return false; // upgrader_pre_download filter default return value. } );