[wp-trac] [WordPress Trac] #23469: Comment meta query is parsed before the pre_get_comments filter

WordPress Trac noreply at wordpress.org
Tue Feb 19 04:10:47 UTC 2013


#23469: Comment meta query is parsed before the pre_get_comments filter
--------------------------+------------------------------
 Reporter:  kasparsd      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Comments      |     Version:  3.5
 Severity:  major         |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------
Changes (by SergeyBiryukov):

 * version:  3.5.1 => 3.5


Comment:

 Related: [22074] (for #21003).

 Unless I'm missing something, the hook appears to be at the correct
 location. `parse_query_vars()` can be run again from the hooked function
 if needed.

 The suggested patch would make `$this->meta_query` object inaccessible for
 the hooked functions.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23469#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list