fix themes
This commit is contained in:
parent
fd736b5acd
commit
c597bf3ae4
1 changed files with 4 additions and 5 deletions
|
|
@ -3,7 +3,7 @@
|
||||||
* Plugin Name: Gitea Updater
|
* Plugin Name: Gitea Updater
|
||||||
* Plugin URI: http://www.paucapo.com
|
* Plugin URI: http://www.paucapo.com
|
||||||
* Description: Plugins updater
|
* Description: Plugins updater
|
||||||
* Version: 0.3.8
|
* Version: 0.3.9
|
||||||
* Author: Pau Capó
|
* Author: Pau Capó
|
||||||
* Author URI: http://www.paucapo.com
|
* Author URI: http://www.paucapo.com
|
||||||
* Text Domain: gitea
|
* Text Domain: gitea
|
||||||
|
|
@ -178,8 +178,7 @@ class Gitea_Updater
|
||||||
foreach ($themes as $theme) {
|
foreach ($themes as $theme) {
|
||||||
|
|
||||||
$headers = $this->get_file_headers(file_get_contents($theme->get_template_directory().'/style.css'), 'theme');
|
$headers = $this->get_file_headers(file_get_contents($theme->get_template_directory().'/style.css'), 'theme');
|
||||||
var_dump($headers);
|
if (empty($headers['GiteaHost']) || empty($headers['GiteaURI'])) {
|
||||||
if (empty($headers['Gitea Host']) || empty($headers['Gitea URI'])) {
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -194,8 +193,8 @@ class Gitea_Updater
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$host = $this->get_host($headers['Gitea Host']);
|
$host = $this->get_host($headers['GiteaHost']);
|
||||||
$repo = $headers['Gitea URI'];
|
$repo = $headers['GiteaURI'];
|
||||||
|
|
||||||
$url = $this->get_url($host, $repo, '/raw/master/style.css');
|
$url = $this->get_url($host, $repo, '/raw/master/style.css');
|
||||||
$new_version = $local_version;
|
$new_version = $local_version;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue