Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | public function parse_query( $query ) { |
||
20 | if ( isset( $query->query_vars['field_name'], $query->query_vars['value'] ) ) { |
||
21 | $this->field = $query->query_vars['field_name']; |
||
22 | $this->value = $query->query_vars['value']; |
||
23 | |||
24 | // TODO: Use WP_Comment_Query related filters. |
||
25 | add_filter( 'posts_where', array( $this, 'filter_where' ) ); |
||
26 | add_filter( 'posts_selection', array( $this, 'remove_where_filter' ) ); |
||
27 | } |
||
52 |