radishconcepts / WordPress-GitHub-Plugin-Updater

This class is meant to be used with your Github hosted WordPress plugins. The purpose of the class is to allow your WordPress plugin to be updated whenever you push out a new version of your plugin; similarly to the experience users know and love with the WordPress.org plugin repository.
https://github.com/jkudish/WordPress-GitHub-Plugin-Updater
822 stars 195 forks source link

WP_ERROR Fix #46

Closed AriTheElk closed 11 years ago

AriTheElk commented 11 years ago

This script occasionally breaks the plugin when trying to activate/update and receiving the $raw_response object as a non-array or nil object. This simple condition fixes it by detecting whether the response exists and is an array before outputting the response.