| @@ -10,14 +10,11 @@ | ||
| 10 | 10 | use WP_Defender\Controller; |
| 11 | 11 | use WP_Defender\Component\Blacklist_Lockout; |
| 12 | 12 | use WP_Defender\Component\Fake_Bot_Detection as Fake_Bot_Detection_Component; |
| 13 | 13 | use WP_Defender\Traits\IP; |
| 14 | -use WP_Defender\Component\Breadcrumbs; | |
| 15 | 14 | |
| 16 | 15 | /** |
| 17 | 16 | * Handles operations to detect whether the current HTTP request comes from a legitimate bot. |
| 18 | - * | |
| 19 | - * @package MyPlugin\Controllers | |
| 20 | 17 | */ |
| 21 | 18 | class Fake_Bot_Detection extends Controller { |
| 22 | 19 | use IP; |
| 23 | 20 | |
| @@ -50,9 +47,9 @@ | ||
| 50 | 47 | * Delete all the data & the cache. |
| 51 | 48 | */ |
| 52 | 49 | public function remove_data() { |
| 53 | 50 | delete_site_transient( Fake_Bot_Detection_Component::CACHE_KEY ); |
| 54 | - wd_di()->get( Breadcrumbs::class )->delete_meta_key(); | |
| 51 | + $this->service->clear_fb_transients(); | |
| 55 | 52 | } |
| 56 | 53 | |
| 57 | 54 | /** |
| 58 | 55 | * Exports strings. |