Skip to content

Commit 3ee740a

Browse files
committed
Fix. Integration. Fluent forms integration fixed (fix for commit ae74511).
1 parent d2609cf commit 3ee740a

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

cleantalk.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -603,16 +603,13 @@ function apbct_write_js_errors($data)
603603

604604
// Public actions
605605
if ( ! is_admin() && ! apbct_is_ajax() && ! apbct_is_customize_preview() ) {
606-
if ( ! function_exists('is_user_logged_in') ) {
607-
require_once ABSPATH . 'wp-includes/pluggable.php';
608-
}
609606
if (
610607
apbct_is_plugin_active('fluentformpro/fluentformpro.php') &&
611608
(
612609
apbct_is_in_uri('ff_landing=') ||
613610
(
614611
// Load scripts for logged in users if constant is defined
615-
is_user_logged_in() &&
612+
apbct_is_user_logged_in() &&
616613
(defined('APBCT_FF_JS_SCRIPTS_LOAD') &&
617614
APBCT_FF_JS_SCRIPTS_LOAD == true)
618615
)

0 commit comments

Comments
 (0)