| @@ 70-77 (lines=8) @@ | ||
| 67 | } |
|
| 68 | } |
|
| 69 | ||
| 70 | if ( isset( $args['page_handle'] ) ) { |
|
| 71 | $page_handle = wp_parse_args( $args['page_handle'] ); |
|
| 72 | if ( isset( $page_handle['value'] ) && isset( $page_handle['id'] ) ) { |
|
| 73 | // we have a valid looking page handle |
|
| 74 | $this->page_handle = $page_handle; |
|
| 75 | add_filter( 'posts_where', array( $this, 'handle_where_for_page_handle' ) ); |
|
| 76 | } |
|
| 77 | } |
|
| 78 | ||
| 79 | if ( $this->date_range ) { |
|
| 80 | add_filter( 'posts_where', array( $this, 'handle_date_range' ) ); |
|
| @@ 246-253 (lines=8) @@ | ||
| 243 | add_filter( 'posts_where', array( $this, 'handle_modified_range' ) ); |
|
| 244 | } |
|
| 245 | ||
| 246 | if ( isset( $args['page_handle'] ) ) { |
|
| 247 | $page_handle = wp_parse_args( $args['page_handle'] ); |
|
| 248 | if ( isset( $page_handle['value'] ) && isset( $page_handle['id'] ) ) { |
|
| 249 | // we have a valid looking page handle |
|
| 250 | $this->page_handle = $page_handle; |
|
| 251 | add_filter( 'posts_where', array( $this, 'handle_where_for_page_handle' ) ); |
|
| 252 | } |
|
| 253 | } |
|
| 254 | ||
| 255 | /** |
|
| 256 | * 'column' necessary for the me/posts endpoint (which extends sites/$site/posts). |
|