add wp site to log
This commit is contained in:
parent
f5251da21e
commit
87876bbf14
1 changed files with 4 additions and 1 deletions
|
|
@ -36,6 +36,7 @@ class Gitea_Updater
|
|||
}
|
||||
|
||||
private $cache = 86400; // 1 day in seconds
|
||||
private $site = '';
|
||||
|
||||
public $plugins = array();
|
||||
public $themes = array();
|
||||
|
|
@ -43,6 +44,8 @@ class Gitea_Updater
|
|||
function __construct()
|
||||
{
|
||||
|
||||
$this->site = urlencode(str_replace(array('http://', 'https://'), '', get_site_url()));
|
||||
|
||||
add_action('plugins_loaded', array($this, 'plugins_loaded'));
|
||||
|
||||
Gitea_Options::getInstance();
|
||||
|
|
@ -236,7 +239,7 @@ class Gitea_Updater
|
|||
if (!$access_token) return false;
|
||||
}
|
||||
|
||||
return $host . 'api/v1/repos/' . $repo . $args . '?access_token=' . $access_token;
|
||||
return $host . 'api/v1/repos/' . $repo . $args . '?access_token=' . $access_token . '&wp=' . urlencode($this->site);
|
||||
}
|
||||
|
||||
function get_file($url)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue