[wp-trac] [WordPress Trac] #12212: post__in and other array_key can't manage empty array properly
WordPress Trac
noreply at wordpress.org
Thu Jul 22 16:43:50 UTC 2021
#12212: post__in and other array_key can't manage empty array properly
-----------------------------+----------------------
Reporter: lifeless85 | Owner: ryan
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Query | Version: 2.9.1
Severity: normal | Resolution: wontfix
Keywords: has-patch close | Focuses:
-----------------------------+----------------------
Comment (by todditron):
I know this has been closed for a decade, but just ran into this as a
problem in 2021.
The problem isn't that we don't have a workaround, the problem is that
there is no way to anticipate that we need the workaround
In my case, I was developing a custom members site with access-protected
course pages, and ended up showing ALL courses to the members without any
authorization rather than ZERO courses
--
Ticket URL: <https://core.trac.wordpress.org/ticket/12212#comment:29>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list