Skip to content

Commit

Permalink
add $response back to API
Browse files Browse the repository at this point in the history
  • Loading branch information
afragen committed Dec 19, 2024
1 parent 7606afa commit e960203
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Git_Updater/REST/REST_API.php
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ public function get_api_data( \WP_REST_Request $request ) {
];

$repo_cache = $this->get_repo_cache( $slug );
Singleton::get_instance( 'Fragen\Git_Updater\API\API', $this )->response = $repo_cache;

if ( $repo_api_data['download_link']
&& ( $repo_api_data['is_private'] || in_array( $repo_api_data['git'], [ 'gitlab', 'gitea' ], true ) )
Expand Down

0 comments on commit e960203

Please sign in to comment.