| @@ -10,9 +10,10 @@ | ||
| 10 | 10 | add_filter('posts_request', array($this, 'posts_request'), 10, 2); |
| 11 | 11 | } |
| 12 | 12 | |
| 13 | 13 | function init () { |
| 14 | - // NOOP | |
| 14 | + global $wp; | |
| 15 | + $wp->add_query_var('guid'); | |
| 15 | 16 | } |
| 16 | 17 | |
| 17 | 18 | function parse_query ($q) { |
| 18 | 19 | if ($q->get('guid')) : |
| @@ -26,9 +27,9 @@ | ||
| 26 | 27 | endif; |
| 27 | 28 | } /* SyndicationDataQueries::parse_query () */ |
| 28 | 29 | |
| 29 | 30 | function pre_get_posts ($q) { |
| 30 | - // Is this a stub? Nothing is used... (gwyneth 20230920) | |
| 31 | + // | |
| 31 | 32 | } |
| 32 | 33 | |
| 33 | 34 | function posts_request ($sql, $query) { |
| 34 | 35 | if ($query->get('fields') == '_synfresh') : |
| @@ -55,9 +56,9 @@ | ||
| 55 | 56 | if ($guid != $nGuid) : |
| 56 | 57 | $seek[] = $nGuid; |
| 57 | 58 | $seek[] = SyndicatedPost::alternative_guid($guid); |
| 58 | 59 | endif; |
| 59 | - | |
| 60 | + | |
| 60 | 61 | // Escape to prevent frak-ups, injections, etc. |
| 61 | 62 | $seek = array_map('esc_sql', $seek); |
| 62 | 63 | |
| 63 | 64 | // Assemble |