Skip to content
This repository was archived by the owner on Jan 31, 2019. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function transient_update_themes_filter($data){
// check for rollback
if(isset($_GET['rollback'])){
$data->response[$theme_key]['package'] =
$theme['Github Theme URI'] . '/zipball/' . urlencode($_GET['rollback']);
$theme['Github Theme URI'] . '/archive/' . urlencode($_GET['rollback']) . '.zip';
continue;
}

Expand All @@ -124,7 +124,7 @@ function transient_update_themes_filter($data){


// new update available, add to $data
$download_link = $theme['Github Theme URI'] . '/zipball/' . $newest_tag;
$download_link = $theme['Github Theme URI'] . '/archive/' . $newest_tag . '.zip';
$update = array();
$update['new_version'] = $newest_tag;
$update['url'] = $theme['Github Theme URI'];
Expand Down