YahnisElsts / plugin-update-checker

A custom update checker for WordPress plugins. Useful if you don't want to host your project in the official WP repository, but would still like it to support automatic updates. Despite the name, it also works with themes.
MIT License
2.25k stars 410 forks source link

Added conditional to prevent fatal error when CRON is disabled #426

Closed chrisblakley closed 3 years ago

chrisblakley commented 3 years ago

If $update is ever false this will prevent a fatal error on the update-core.php page.

Related: https://github.com/YahnisElsts/plugin-update-checker/issues/425

I played around with this some more and found that this conditional prevents the error. Again, I don't know if this is something that would be better to fix upstream, but hope this helps shed some light at least!

chrisblakley commented 3 years ago

This is unnecessary after the resolution found in the issue #425