We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 095dab0 + 0d8d970 commit 8cad05aCopy full SHA for 8cad05a
lib/functions.php
@@ -36,7 +36,9 @@ public static function get_latest_vccw_url()
36
$api = "https://api.github.com/repos/vccw-team/vccw/releases/latest";
37
$body = json_decode( self::download( $api ) );
38
39
- if ( $body ) {
+ if ( ! empty( $body->assets[0] ) && ! empty( $body->assets[0]->browser_download_url ) ) {
40
+ return $body->assets[0]->browser_download_url;
41
+ } elseif ( $body ) {
42
return $body->zipball_url;
43
}
44
0 commit comments