Skip to content
Snippets Groups Projects

bugfix(ajax): permission check

Merged Grzegorz Rola requested to merge bugfix/permission-check into master
1 file
+ 1
0
Compare changes
  • Side-by-side
  • Inline
@@ -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();
Loading