[Defender] Bug Found – Defender – Deleting Logs


I am just reporting a bug found in Defender. If I go into the IP Lockout Log page. (/wp-admin/admin.php?page=wdf-ip-lockout&view=logs) and I use the mass delete option. If I don't select any logs to delete but I select a "Bulk Update", I get the following error in my logs.

Error: Call to a member function delete() on null

File "/var/www/html/wp-content/plugins/wp-defender/app/module/ip-lockout/controller/main.php", line 96, in bulkAction


File "/var/www/html/wp-includes/class-wp-hook.php", line 286, in apply_filters

$value = call_user_func_array( $the_['function'], $args );

File "/var/www/html/wp-includes/class-wp-hook.php", line 310, in do_action

$this->apply_filters( '', $args );

File "/var/www/html/wp-includes/plugin.php", line 453, in do_action

$wp_filter[ $tag ]->do_action( $args );

File "admin-ajax.php", line 99

do_action( 'wp_ajax_' . $_REQUEST['action'] );

This is a low issue, but a good patch for the next version!