| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function parse_query( $query ) { |
||
| 28 | if ( isset( $query->query_vars['days'] ) ) { |
||
| 29 | $this->days = $query->query_vars['days']; |
||
| 30 | $this->op = $query->query_vars['op']; |
||
| 31 | |||
| 32 | add_filter( 'posts_where', array( $this, 'filter_where' ) ); |
||
| 33 | add_filter( 'posts_selection', array( $this, 'remove_where' ) ); |
||
| 34 | } |
||
| 57 |