[Defender Pro] Small fix in Defender Pro

0

Hello there!

Defender Pro generates a bug during login when used on a Themosis website (instead of vanilla WordPress).

An easy solution would be to add an additional validation in /src/component/audit/audit-event.php, line 320:

if ( is_callable( $hook_data[‘context’] ) && is_array( $hook_data[‘context’] ) ) {

instead of

if ( is_callable( $hook_data[‘context’] ) ) {

This seems to fix the problem and allows the login to take place.

Thanks in advance for considering this fix!

Daniel Le Blanc,
ctrlweb