Skip to content
Snippets Groups Projects
Commit c9ce0174 authored by Grzegorz Rola's avatar Grzegorz Rola
Browse files

bugfix(ajax): permission check

parent 4757a0fa
No related branches found
No related tags found
1 merge request!28bugfix(ajax): permission check
Pipeline #337408 failed
This commit is part of merge request !28. Comments created here will be created in the context of that merge request.
......@@ -91,6 +91,7 @@ class AjaxHandlerTest extends WPTestCase {
}
public function testShoulfNotProcessAjaxNoticeDismissWhenInvalidNonce() {
defince( 'DOING_AJAX', true );
$_POST[ AjaxHandler::POST_FIELD_NOTICE_NAME ] = self::NOTICE_NAME;
$_POST[ AjaxHandler::POST_FIELD_SECURITY ] = wp_create_nonce();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment