Allow um_show_content to swap profile id

This commit is contained in:
champsupertramp
2016-10-06 00:07:37 +08:00
parent 7f8609e156
commit dd587d636b
+8 -1
View File
@@ -547,9 +547,16 @@ class UM_Shortcodes {
$a = shortcode_atts( array(
'roles' => '',
'not' => '',
'is_profile' => false,
), $atts );
um_fetch_user( $user_ID );
if( $a['is_profile'] ){
um_fetch_user( um_profile_id() );
}else{
um_fetch_user( $user_ID );
}
$current_user_role = um_user('role');