Ignore plugin hook calling errors (#8693)

Mostly this is because the plugin methods aren't static.
This commit is contained in:
Tony Murray
2018-05-11 09:40:45 -05:00
committed by Neil Lathwood
parent 2815979f5f
commit 54aa0a4df4

View File

@ -90,9 +90,9 @@ class Plugins
if (!empty(self::$plugins[$hook])) {
foreach (self::$plugins[$hook] as $name) {
if (!is_array($params)) {
call_user_func(array($name, $hook));
@call_user_func(array($name, $hook));
} else {
call_user_func_array(array($name, $hook), $params);
@call_user_func_array(array($name, $hook), $params);
}
}
}