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

WordPress Trac noreply at wordpress.org
Tue Feb 11 05:40:54 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 nacin):

 This ticket focuses directly on a solution. I think it would be best to
 flush out the problem first. There definitely shouldn't be hooks in those
 functions due to their nature of needing to return exactly and
 consistently what the post status definition, or in the other case it's
 little more than a helper for the post_status post property.

 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.

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


More information about the wp-trac mailing list