From cd794c16fe83db7c75198791fc63561eb54aaaca Mon Sep 17 00:00:00 2001 From: Deirdre Connolly Date: Mon, 25 Mar 2013 13:11:17 -0400 Subject: [PATCH] Update 'zipball' urls to 'archive' with correct .zip's. Tested on wordpress 3.3.2. --- updater.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/updater.php b/updater.php index c4f6eb8..82421e0 100755 --- a/updater.php +++ b/updater.php @@ -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; } @@ -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'];