From 71dc8d4730818f4fe66e827fe31fb011d05a32d9 Mon Sep 17 00:00:00 2001 From: Nikita Sinelnikov Date: Tue, 15 Jun 2021 12:18:56 +0300 Subject: [PATCH] - fixed displaying different profile form shortcodes with different role visibility settings on the same page; - fixed displaying avatar on the logout page; --- includes/core/class-shortcodes.php | 4 ++-- templates/logout.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/core/class-shortcodes.php b/includes/core/class-shortcodes.php index ae31c36e..2afbcee4 100644 --- a/includes/core/class-shortcodes.php +++ b/includes/core/class-shortcodes.php @@ -717,7 +717,7 @@ if ( ! class_exists( 'um\core\Shortcodes' ) ) { } $this->profile_role = $args['role']; - } else { + } elseif ( $this->profile_role != $args['role'] ) { ob_get_clean(); return ''; } @@ -1307,4 +1307,4 @@ if ( ! class_exists( 'um\core\Shortcodes' ) ) { } } -} \ No newline at end of file +} diff --git a/templates/logout.php b/templates/logout.php index 897d16bf..6239943f 100644 --- a/templates/logout.php +++ b/templates/logout.php @@ -8,7 +8,7 @@
- +
@@ -64,4 +64,4 @@ - \ No newline at end of file +