Works, but spits out error with WP_DEBUG turned on
-
With WP_DEBUG set to true, this error appears:
Notice: register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.) in /wp-includes/functions.php on line 3792
This can be fixed by doing the following. Change line 47 from:
register_uninstall_hook(__FILE__, array($this, 'uninstall'));
to:
register_uninstall_hook(__FILE__, array('site_maintenance_mode', 'uninstall'));
Hopefully that gets fixed and an update that says compatible to 4.5 comes out soon!
- The topic ‘Works, but spits out error with WP_DEBUG turned on’ is closed to new replies.