- fixed displaying different profile form shortcodes with different role visibility settings on the same page;

- fixed displaying avatar on the logout page;
This commit is contained in:
Nikita Sinelnikov
2021-06-15 12:18:56 +03:00
parent f85bfcfb05
commit 71dc8d4730
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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' ) ) {
}
}
}
}