Let themes hosted on BitBucket use the "Stable tag" header to specify the latest version.

This commit is contained in:
Yahnis Elsts 2016-12-31 13:46:10 +02:00
parent 0e67e4c588
commit 870901b1f2
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ if ( !class_exists('Puc_v4_Vcs_ThemeUpdateChecker', false) ):
$update->slug = $this->slug;
//Figure out which reference (tag or branch) we'll use to get the latest version of the theme.
$updateSource = $api->chooseReference($this->branch, false);
$updateSource = $api->chooseReference($this->branch);
if ( $updateSource ) {
$ref = $updateSource->name;
$update->version = $updateSource->version;