mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-17 13:43:38 +09:00
Version 1.0.48
This commit is contained in:
+1
-1
@@ -181,7 +181,7 @@ class UM_Query {
|
||||
$real_role_slug = $role_slug;
|
||||
}
|
||||
} else {
|
||||
$post_id = $wpdb->get_var("SELECT ID FROM $wpdb->posts WHERE post_status = 'publish' AND post_name = '$role_slug'");
|
||||
$post_id = $wpdb->get_var("SELECT ID FROM $wpdb->posts WHERE post_status = 'publish' AND post_type = 'um_role' AND post_name = '$role_slug'");
|
||||
$real_role_slug = $role_slug;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user