From becb982267e248c7d4b9af0390c67767d640fe34 Mon Sep 17 00:00:00 2001 From: Glomberg Date: Wed, 11 Dec 2024 15:42:06 +0300 Subject: [PATCH] Fix. Integration. Masteriyo LMS PRO plugin integration fixed. --- inc/cleantalk-pluggable.php | 5 ++++- inc/cleantalk-public-integrations.php | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/inc/cleantalk-pluggable.php b/inc/cleantalk-pluggable.php index 15edf7914..d0c8f1c8f 100644 --- a/inc/cleantalk-pluggable.php +++ b/inc/cleantalk-pluggable.php @@ -1199,7 +1199,10 @@ function apbct_is_skip_request($ajax = false) // skip masteriyo_login LMS if ( - apbct_is_plugin_active('learning-management-system/lms.php') && + ( + apbct_is_plugin_active('learning-management-system/lms.php') || + apbct_is_plugin_active('learning-management-system-pro/lms.php') + ) && Post::get('action') === 'masteriyo_login' ) { return 'masteriyo_login LMS'; diff --git a/inc/cleantalk-public-integrations.php b/inc/cleantalk-public-integrations.php index d2c38d7b0..0f10beb38 100644 --- a/inc/cleantalk-public-integrations.php +++ b/inc/cleantalk-public-integrations.php @@ -3379,7 +3379,10 @@ function apbct_custom_forms_trappings() // Registration form of masteriyo registration if ( $apbct->settings['forms__registrations_test'] && Post::get('masteriyo-registration') === 'yes' && - apbct_is_plugin_active('learning-management-system/lms.php') + ( + apbct_is_plugin_active('learning-management-system/lms.php') || + apbct_is_plugin_active('learning-management-system-pro/lms.php') + ) ) { return true; }