Merge pull request #31 from plescheff/master
Added plugin error messages filter
This commit is contained in:
commit
a3a032df8c
1 changed files with 5 additions and 2 deletions
|
@ -251,8 +251,11 @@ class WP_FFPC extends PluginAbstract {
|
|||
}
|
||||
}
|
||||
|
||||
foreach ( $this->errors as $e => $msg ) {
|
||||
$this->utils->alert ( $msg, LOG_WARNING, $this->network );
|
||||
$filtered_errors = apply_filters('wp_ffpc_post_init_errors_array', $this->errors);
|
||||
if ($filtered_errors) {
|
||||
foreach ( $this->errors as $e => $msg ) {
|
||||
$this->utils->alert ( $msg, LOG_WARNING, $this->network );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue