Version 1.0.48

This commit is contained in:
ultimatemember
2015-02-10 02:05:27 +02:00
parent 5487c7b6d1
commit b4f313e8bc
21 changed files with 192 additions and 32 deletions
+1 -1
View File
@@ -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;
}