Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions classes/plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,10 @@ public function api_slurp() {
}
$result = wp_remote_get( add_query_arg( 'time', time(), $this->get_option( 'slurp_url' ) ) );
if ( $result['response']['code'] == 200 ) {

// Ensure that our post type is registered prior to any operations that might get executed downstream
$this->register_post_type();

$topics = new WP_Query( array(
'post_type' => self::POST_TYPE,
'posts_per_page' => -1,
Expand Down