-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New approach for excluding off-limits docs from queries.
This new approach is necessary because of the limitations of WP_Query that don't allow you to use 'OR' relations between the meta_query and the author__not_in parameters. Instead, we have to use more explicit logic to pull up a list of off-limits docs, then loop through them to remove items belonging to the user. See #3174.
- Loading branch information
1 parent
edcc5e7
commit d013d88
Showing
1 changed file
with
53 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters