register_uninstall_hook was called incorrectly
-
Wordpress updated to 4.9.8.
Plugin updated to 4.0.Now I get this notice on every page : “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.0.) in D:\Websites\iriscaretest\wp-includes\functions.php on line 4161”.
If I comment the line 90 in mw-polylang-theme-strings.php this notice desapears.
I notice that the register_uninstall_hook is modified with the last version.
Old version = register_uninstall_hook($this->Path_Get(‘plugin_file_index’), array(__CLASS__, ‘Uninstall’));
New version = register_uninstall_hook($this->Path_Get(‘plugin_file_index’), array($this, ‘Uninstall’));
- The topic ‘register_uninstall_hook was called incorrectly’ is closed to new replies.