Skip to content

Commit 39e505f

Browse files
committed
updater check updated
1 parent 4bc8472 commit 39e505f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

includes/PDUpdater.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,9 @@ public function modify_transient($transient)
9999
if (property_exists($transient, 'checked')) {
100100
if ($checked = $transient->checked) {
101101
$this->get_repository_info();
102-
write_log(str_replace("v", "", $this->github_response['tag_name']));
103-
write_log($checked[$this->basename]);
104-
$out_of_date = version_compare(str_replace("v", "", $this->github_response['tag_name']), $checked[$this->basename], 'gt');
105-
write_log($out_of_date);
102+
103+
$out_of_date = version_compare($this->github_response['tag_name'], $checked[$this->basename], 'gt');
104+
106105
if ($out_of_date) {
107106
$new_files = $this->github_response['zipball_url'];
108107
$slug = current(explode('/', $this->basename));

0 commit comments

Comments
 (0)