Skip to content

Commit

Permalink
exchange filter for check of redirect value
Browse files Browse the repository at this point in the history
  • Loading branch information
afragen committed Jan 5, 2025
1 parent 603866f commit 48cc972
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion git-updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* Plugin Name: Git Updater
* Plugin URI: https://git-updater.com
* Description: A plugin to automatically update GitHub hosted plugins, themes, and language packs. Additional API plugins available for Bitbucket, GitLab, Gitea, and Gist.
* Version: 12.8.0.8
* Version: 12.8.0.9
* Author: Andy Fragen
* License: MIT
* Domain Path: /languages
Expand Down
2 changes: 1 addition & 1 deletion src/Git_Updater/REST/REST_API.php
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ public function get_api_data( \WP_REST_Request $request ) {

if ( $download && $repo_data->release_asset ) {
if ( isset( $repo_cache['release_asset_download'] )
&& ! apply_filters( 'gu_github_release_asset_redirect', false, $repo_cache )
&& isset( $repo_cache['release_asset_redirect'] )
&& 'bitbucket' !== $repo_api_data['git']
) {
$repo_api_data['download_link'] = $repo_cache['release_asset_download'];
Expand Down

0 comments on commit 48cc972

Please sign in to comment.