From 13a3ca50a1cee0141b7c02c255690f2a251d9239 Mon Sep 17 00:00:00 2001 From: Mykyta Synelnikov Date: Fri, 7 Jul 2023 02:32:37 +0300 Subject: [PATCH] - fixed banned profile; --- includes/common/class-secure.php | 2 +- includes/frontend/class-secure.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/common/class-secure.php b/includes/common/class-secure.php index 4577d574..c3bb3ab2 100644 --- a/includes/common/class-secure.php +++ b/includes/common/class-secure.php @@ -118,7 +118,7 @@ if ( ! class_exists( 'um\common\Secure' ) ) { array( 'admin' => true, 'tags' => array( - 'banned_profile_links', + '{banned_profile_links}', ), 'tags_replace' => array( $banned_profile_links, diff --git a/includes/frontend/class-secure.php b/includes/frontend/class-secure.php index e7083a4d..bbc5f401 100644 --- a/includes/frontend/class-secure.php +++ b/includes/frontend/class-secure.php @@ -199,7 +199,7 @@ if ( ! class_exists( 'um\frontend\Secure' ) ) { $arr_banned_caps = array(); if ( UM()->options()->get( 'banned_capabilities' ) ) { - $arr_banned_caps = array_keys( UM()->options()->get( 'banned_capabilities' ) ); + $arr_banned_caps = UM()->options()->get( 'banned_capabilities' ); } // Add locked administrative capabilities.