File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments