mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-16 05:03:33 +09:00
- 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:
@@ -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' ) ) {
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user