Automattic / developer

In your WordPress, developing locally
http://vip.wordpress.com
GNU General Public License v2.0
472 stars 103 forks source link

Fatal error when installing plugins under certain conditions. #43

Closed nickdaugherty closed 11 years ago

nickdaugherty commented 11 years ago

If a plugin install fails, it usually returns an instance of WP_Error, but not always. On developer.php, line 397, we need to check that $install_result is a WP_Error before calling get_error_message(), because it can be a boolean. Otherwise, you can get:

Fatal error: Call to a member function get_error_message() on a non-object in /{Web Server}/trunk/wp-content/plugins/developer/developer.php on line 397