[wp-trac] [WordPress Trac] #27088: Allow per-query filtering of post status objects

WordPress Trac noreply at wordpress.org
Tue Feb 11 06:03:33 UTC 2014


#27088: Allow per-query filtering of post status objects
-------------------------+------------------------------
 Reporter:  ericmann     |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Query        |     Version:  3.8.1
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by ericmann):

 Replying to [comment:1 nacin]:
 > Instead, you should be able to control what status Wp_Query thinks the
 post is, and/or manipulate or bypass those checks via a particular query
 variable, filter, or some such.

 I can accept that. This is why the original patch introduced 3 different
 filters: 1 each for the post status functions, and 1 inside
 WP_Query::get_posts() itself.

 Based on this feedback, perhaps only the third filter is appropriate.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27088#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list