[wp-trac] [WordPress Trac] #36097: wp_filter reset after sub-queries

WordPress Trac noreply at wordpress.org
Mon Mar 7 08:40:42 UTC 2016


#36097: wp_filter reset after sub-queries
-------------------------------+------------------------------
 Reporter:  cartpauj           |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Query              |     Version:  4.4.2
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by justinbusa):

 Thanks for having a look at this! For context, I have run into this before
 but have always found a workaround until cartpauj ran into a conflict
 between our two plugins.

 I need some time to put together some examples, but what I believe is
 happening is that the array pointer for $wp_filters['the_content'] gets
 moved to the end for sub-queries, so subsequent filters never get called
 on the main query. Give me a few days and I'll come back with some
 examples, or my tail between my legs ;) Thanks!

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


More information about the wp-trac mailing list