Skip to content

Commit c50a39d

Browse files
committed
Upd. Settings. Updated RC to init settings update.
1 parent d43bc7e commit c50a39d

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

lib/Cleantalk/ApbctWP/RemoteCalls.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,13 @@ public static function perform()
158158
*
159159
* @return string
160160
*/
161-
public static function action__update_license() // phpcs:ignore PSR1.Methods.CamelCapsMethodName.NotCamelCaps
161+
public static function action__license_update() // phpcs:ignore PSR1.Methods.CamelCapsMethodName.NotCamelCaps
162162
{
163163
if ( ! headers_sent() ) {
164164
header("Content-Type: application/json");
165165
}
166166

167-
if (function_exists('apbct_settings__sync')) {
167+
if ( ! function_exists('apbct_settings__sync') ) {
168168
require_once APBCT_DIR_PATH . 'inc/cleantalk-settings.php';
169169
}
170170

lib/Cleantalk/ApbctWP/State.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ class State extends \Cleantalk\Common\State
284284
'check_website' => array('last_call' => 0, 'cooldown' => 0),
285285
'update_settings' => array('last_call' => 0, 'cooldown' => 0),
286286
'run_service_template_get' => array('last_call' => 0, 'cooldown' => 60),
287+
'license_update' => array('last_call' => 0, 'cooldown' => 0),
287288

288289

289290
// Firewall

0 commit comments

Comments
 (0)