Skip to content
This repository has been archived by the owner on Feb 23, 2019. It is now read-only.

Commit

Permalink
[v0.9.4.x] updater update (#283)
Browse files Browse the repository at this point in the history
Just an update to the updater
  • Loading branch information
amiga-500 authored Jan 13, 2017
1 parent 7fcb54d commit e1964d5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -405,12 +405,14 @@ public function api_check( $transient ) {
}

if (empty($transient->response[ $this->config['slug'] ])) {
global $wp_version;

$response = new stdClass;
$response->new_version = $this->config['new_version'];
$response->slug = $this->config['proper_folder_name'];
$response->url = $this->config['github_url'];
$response->package = $this->config['zip_url'];
$response->tested = $this->config['tested'];
$response->tested = isset($wp_version)?$wp_version:$this->config['tested'];

// If response is false, don't alter the transient
if ( false !== $response )
Expand Down Expand Up @@ -448,7 +450,7 @@ public function get_plugin_info( $false, $action, $response ) {
$response->author = $this->config['author'];
$response->homepage = $this->config['homepage'];
$response->requires = $this->config['requires'];
$response->tested = $this->config['tested'];
$response->tested = isset($wp_version)?$wp_version:$this->config['tested'];
$response->downloaded = 0;
$response->last_updated = $this->config['last_updated'];
$response->sections['description'] = $this->config['description'];
Expand Down

0 comments on commit e1964d5

Please sign in to comment.