diff --git a/src/WPDesk/Notice/AjaxHandler.php b/src/WPDesk/Notice/AjaxHandler.php index fc3e67448b96feb7f5d9429f160eea140c1472c0..64c871754f1cfab287f9bfaff40f13a22ed72dae 100644 --- a/src/WPDesk/Notice/AjaxHandler.php +++ b/src/WPDesk/Notice/AjaxHandler.php @@ -79,7 +79,7 @@ class AjaxHandler implements HookablePluginDependant { $noticeName = sanitize_text_field( $_POST[ self::POST_FIELD_NOTICE_NAME ] ); $option_name = PermanentDismissibleNotice::OPTION_NAME_PREFIX . $noticeName; - \ajax_check_referer( $option_name, self::POST_FIELD_SECURITY ); + ajax_check_referer( $option_name, self::POST_FIELD_SECURITY ); if ( ! current_user_can( 'edit_posts' ) ) { wp_send_json_error(); diff --git a/tests/codeception/tests/integration.suite.yml b/tests/codeception/tests/integration.suite.yml index 25ef607c1f3de3ce2340ad644c5ee1059b6e602d..1f3f494f6ddd47c015a60728d2d9ed14ddb5551a 100644 --- a/tests/codeception/tests/integration.suite.yml +++ b/tests/codeception/tests/integration.suite.yml @@ -32,6 +32,7 @@ modules: dbPassword: "%TEST_SITE_DB_PASSWORD%" isolatedInstall: false loadOnly: false + skipPluggables: false tablePrefix: "%TEST_SITE_TABLE_PREFIX%" plugins: [] activatePlugins: []