- 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' ) ) {
}
}
}
}
+2 -2
View File
@@ -8,7 +8,7 @@
<div class="um-misc-img">
<a href="<?php echo esc_url( um_get_core_page( 'user' ) ); ?>">
<?php echo um_user( 'profile_photo', 80 ); ?>
<?php echo get_avatar( um_user( 'ID' ), 80 ) ?>
</a>
</div>
@@ -64,4 +64,4 @@
</ul>
</div>
</div>
</div>