[wp-trac] [WordPress Trac] #36687: Feature to override WP_Query to provide results from other source

WordPress Trac noreply at wordpress.org
Wed Jun 8 04:25:40 UTC 2016


#36687: Feature to override WP_Query to provide results from other source
-----------------------------------+--------------------------
 Reporter:  jpdavoutian            |       Owner:  jpdavoutian
     Type:  feature request        |      Status:  assigned
 Priority:  normal                 |   Milestone:  4.6
Component:  Query                  |     Version:
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch 2nd-opinion  |     Focuses:
-----------------------------------+--------------------------

Comment (by boonebgorges):

 Replying to [comment:15 jpdavoutian]:
 > @boonebgorges I have tested the solution and it works really great.
 >
 > My only concern is about bypassing `pre_posts_query` when reindexing
 content. I have worked out a solution for my case using the filter and a
 class variable. Maybe not the ideal solution but it was the only one that
 I could think of.
 > I'm not sure how other plugins could make any use of this in case they
 need the original query.

 Thanks for the feedback. Can you say more about this concern? I'm not sure
 what you mean by "bypassing `pre_posts_query` when reindexing content".

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


More information about the wp-trac mailing list