- fixed restriction logic cases;

- fixed conditions for the restriction logic options;
This commit is contained in:
Nikita Sinelnikov
2021-09-14 18:21:41 +03:00
parent 66f5c8e820
commit 641f2c5a74
5 changed files with 20 additions and 16 deletions
+1 -1
View File
@@ -1379,7 +1379,7 @@ if ( ! class_exists( 'um\core\Access' ) ) {
}
}
} else {
if ( UM()->options()->get( 'disable_restriction_pre_queries' ) || empty( $restriction['_um_access_hide_from_queries'] ) ) {
if ( empty( $restriction['_um_access_hide_from_queries'] ) || ! UM()->options()->get( 'disable_restriction_pre_queries' ) ) {
$filtered_posts[] = $this->maybe_replace_title( $post );
continue;
}