[wp-trac] [WordPress Trac] #20308: Filtering of password protected posts
WordPress Trac
wp-trac at lists.automattic.com
Tue Jun 19 00:14:14 UTC 2012
#20308: Filtering of password protected posts
-------------------------+------------------------------
Reporter: paddelboot | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version: 3.4
Severity: normal | Resolution:
Keywords: needs-patch |
-------------------------+------------------------------
Comment (by nacin):
I could go for post_password as a query variable with these possible
values:
* null (ignore)
* false (only posts without passwords)
* true (only posts with passwords)
* a string (posts with this exact password)
In practice, this kind of type-checking is not particularly feasible in
WP_Query, unfortunately. Would have to be two different query vars, such
as password_exists and post_password. So for now, something like
password_exists or has_password seems like a good approach.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20308#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list