Added errors filtering so plugin/theme authors can intercept error handling.
This commit is contained in:
parent
e3c5b8a2cc
commit
d0dc5cf6d7
1 changed files with 5 additions and 2 deletions
|
@ -251,10 +251,13 @@ class WP_FFPC extends PluginAbstract {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$filtered_errors = apply_filters('wp_ffpc_post_init_errors_array', $this->errors);
|
||||||
|
if ($filtered_errors) {
|
||||||
foreach ( $this->errors as $e => $msg ) {
|
foreach ( $this->errors as $e => $msg ) {
|
||||||
$this->utils->alert ( $msg, LOG_WARNING, $this->network );
|
$this->utils->alert ( $msg, LOG_WARNING, $this->network );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* activation hook function, to be extended
|
* activation hook function, to be extended
|
||||||
|
|
Loading…
Reference in a new issue