Rename function flushAll
[MAILPOET-923]
This commit is contained in:
@ -20,7 +20,7 @@ class DeferredAdminNotices {
|
||||
update_option(DeferredAdminNotices::OPTIONS_KEY_NAME, $notices);
|
||||
}
|
||||
|
||||
public function flushAll() {
|
||||
public function printAndClean() {
|
||||
$notices = get_option(DeferredAdminNotices::OPTIONS_KEY_NAME, array());
|
||||
|
||||
foreach($notices as $notice) {
|
||||
|
@ -49,7 +49,7 @@ class Initializer {
|
||||
|
||||
add_action('admin_init', array(
|
||||
new DeferredAdminNotices,
|
||||
'flushAll'
|
||||
'printAndClean'
|
||||
));
|
||||
|
||||
add_action('plugins_loaded', array(
|
||||
|
Reference in New Issue
Block a user