mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-16 21:23:39 +09:00
- fixed restriction base on term restriction settings;
This commit is contained in:
@@ -257,12 +257,15 @@ if ( ! class_exists( 'um\core\Access' ) ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$taxonomy_data = get_taxonomy( $term['taxonomy'] );
|
||||
|
||||
$this->ignore_exclude = true;
|
||||
// exclude all posts assigned to current term without individual restriction settings
|
||||
$posts = get_posts(
|
||||
array(
|
||||
'fields' => 'ids',
|
||||
'post_status' => 'any',
|
||||
'post_type' => $taxonomy_data->object_type,
|
||||
'numberposts' => -1,
|
||||
'tax_query' => array(
|
||||
array(
|
||||
|
||||
Reference in New Issue
Block a user