Skip to content

Commit

Permalink
Merge pull request #5 from angelleye/AEU-67
Browse files Browse the repository at this point in the history
Add graphics, AEU-67
  • Loading branch information
Drew Angell authored Apr 30, 2019
2 parents c8c860a + fab1b99 commit 9b00538
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion includes/class-angelleye-updater-update-checker.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,12 @@ public function update_check($transient) {

add_action('admin_notices', array($this, 'error_notice_for_deactivated_plugin'));
} else {

if( isset($response->icons) ) {
$response->icons = (array) $response->icons;
}
if( isset($response->banners) ) {
$response->banners = (array) $response->banners;
}
$transient->response[$this->file] = $response;
}
} else {
Expand Down Expand Up @@ -182,6 +187,13 @@ public function plugin_information($false, $action, $args) {
$response->compatibility[$k] = (array) $v;
}
}

if( isset($response->icons) ) {
$response->icons = (array) $response->icons;
}
if( isset($response->banners) ) {
$response->banners = (array) $response->banners;
}

return $response;
}
Expand Down

0 comments on commit 9b00538

Please sign in to comment.