Skip to content

Commit ef029fe

Browse files
authored
Merge pull request #731 from CleanTalk/rmv_promo_gf_av
Fix. Code. Removed the unused code
2 parents cfddb0d + e715b7f commit ef029fe

File tree

6 files changed

+0
-283
lines changed

6 files changed

+0
-283
lines changed

cleantalk.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
use Cleantalk\ApbctWP\Firewall\SFW;
3030
use Cleantalk\ApbctWP\Firewall\SFWUpdateHelper;
3131
use Cleantalk\ApbctWP\Helper;
32-
use Cleantalk\ApbctWP\Promotions\GF2DBPromotion;
3332
use Cleantalk\ApbctWP\RemoteCalls;
3433
use Cleantalk\ApbctWP\RequestParameters\RequestParameters;
3534
use Cleantalk\ApbctWP\RequestParameters\SubmitTimeHandler;
@@ -273,10 +272,6 @@ function apbct_register_my_rest_routes()
273272
add_action('init', function () {
274273
global $apbct;
275274

276-
//promotions
277-
$promotion_gf2db = new GF2DBPromotion();
278-
$promotion_gf2db->init();
279-
280275
// Self cron
281276
$ct_cron = Cron::getInstance();
282277
$tasks_to_run = $ct_cron->checkTasks(); // Check for current tasks. Drop tasks inner counters.

inc/cleantalk-settings.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use Cleantalk\ApbctWP\Escape;
88
use Cleantalk\ApbctWP\Helper;
99
use Cleantalk\ApbctWP\LinkConstructor;
10-
use Cleantalk\ApbctWP\Promotions\GF2DBPromotion;
1110
use Cleantalk\ApbctWP\Validate;
1211
use Cleantalk\ApbctWP\Variables\Post;
1312
use Cleantalk\ApbctWP\Cron;
@@ -132,8 +131,6 @@ function apbct_settings__set_fields()
132131
? '<br>' . __(' - status of SpamFireWall database updating process', 'cleantalk-spam-protect')
133132
: '';
134133

135-
$promotion_gf2db = new GF2DBPromotion();
136-
137134
$fields = array(
138135

139136
'main' => array(
@@ -263,13 +260,6 @@ function apbct_settings__set_fields()
263260
'parent' => 'forms__contact_forms_test',
264261
'display' => apbct_is_plugin_active('gravityforms/gravityforms.php'),
265262
),
266-
'forms__gravity_promotion_gf2db' => array(
267-
'title' => $promotion_gf2db->getTitleForSettings(),
268-
'description' => $promotion_gf2db->getDescriptionForSettings(),
269-
'class' => 'apbct_settings-field_wrapper--sub',
270-
'parent' => 'forms__contact_forms_test',
271-
'display' => $promotion_gf2db->couldPerformActions(),
272-
),
273263
'forms__general_contact_forms_test' => array(
274264
'title' => __('Custom contact forms', 'cleantalk-spam-protect'),
275265
'description' => __(

lib/Cleantalk/ApbctWP/Promotions/GF2DBPromotion.php

Lines changed: 0 additions & 101 deletions
This file was deleted.

lib/Cleantalk/ApbctWP/Promotions/Promotion.php

Lines changed: 0 additions & 54 deletions
This file was deleted.

lib/Cleantalk/ApbctWP/State.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ class State extends \Cleantalk\Common\State
5454
'forms__contact_forms_test' => 1,
5555
'forms__flamingo_save_spam' => 1,
5656
'forms__gravityforms_save_spam' => 1,
57-
'forms__gravity_promotion_gf2db' => 1,
5857
'forms__general_contact_forms_test' => 1, // Anti-Spam test for unsupported and untested contact forms
5958
'forms__wc_checkout_test' => 1, // WooCommerce checkout default test
6059
'forms__wc_register_from_order' => 1, // Woocommerce registration during checkout

tests/ApbctWP/Promotions/GF2DBPromotionTest.php

Lines changed: 0 additions & 112 deletions
This file was deleted.

0 commit comments

Comments
 (0)