[wp-trac] [WordPress Trac] #35192: Comments_clauses filter

WordPress Trac noreply at wordpress.org
Thu Jan 7 04:22:08 UTC 2016


#35192: Comments_clauses filter
--------------------------+--------------------
 Reporter:  firebird75    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.4.2
Component:  Comments      |     Version:  4.4
 Severity:  normal        |  Resolution:
 Keywords:  2nd-opinion   |     Focuses:
--------------------------+--------------------
Changes (by boonebgorges):

 * keywords:   => 2nd-opinion


Comment:

 [attachment:35192.diff] is the kind of string manipulation I have in mind.
 It (a) stores the post-filter WHERE clause, and then (b) removes the
 `parent` etc clauses before building the query in `fill_descendants()`. I
 think more work needs to be done to deal with the various ways that a
 clause may or may not be preceded or followed by `' AND '` (ugh) but the
 patch should give you an idea of what I have in mind.

 @firebird75 What do you think?

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


More information about the wp-trac mailing list