[wp-trac] [WordPress Trac] #20308: Filtering of password protected posts

WordPress Trac wp-trac at lists.automattic.com
Tue Mar 27 13:00:19 UTC 2012


#20308: Filtering of password protected posts
-------------------------+-------------------------------------------------
 Reporter:  paddelboot   |      Owner:
     Type:  feature      |     Status:  new
  request                |  Milestone:  Awaiting Review
 Priority:  normal       |    Version:  3.3.1
Component:  General      |   Keywords:  password, pre_get_posts, query,
 Severity:  normal       |  request, posts_where
-------------------------+-------------------------------------------------
 Goal:
 to query for password protected posts only or to remove all password
 protected posts from a query.

 Current solution:
 Modify the query SQL by using the 'posts_where' filter as suggested here:
 http://stackoverflow.com/questions/7538959/how-to-exclude-password-
 protected-posts-in-wordpress-loop

 Suggested solution:
 Make it possible to modify a parameter via 'pre_get_posts' or 'request' -
 filter, i.e. $query->set( 'post_password', TRUE ).

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20308>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list