Fix a bug in GitHub support where update installation sometimes didn't work when using a private repository.

This commit is contained in:
Yahnis Elsts 2015-09-24 14:59:32 +03:00
parent 4a415c1f33
commit a9c5868910
1 changed files with 2 additions and 0 deletions

View File

@ -94,6 +94,8 @@ class PucGitHubChecker_2_2 extends PluginUpdateChecker_2_2 {
if ( empty($info->download_url) ) {
$info->download_url = $this->buildArchiveDownloadUrl($ref);
} else if ( !empty($this->accessToken) ) {
$info->download_url = add_query_arg('access_token', $this->accessToken, $info->download_url);
}
//Get headers from the main plugin file in this branch/tag. Its "Version" header and other metadata