From 0f0d15f4f768cc9d8fc3481ed64c2f450c478eae Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Wed, 9 Jul 2014 20:39:10 +1000 Subject: [PATCH] Fix post type query warning --- includes/sp-template-hooks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/sp-template-hooks.php b/includes/sp-template-hooks.php index a3ae77e3..9ca62216 100644 --- a/includes/sp-template-hooks.php +++ b/includes/sp-template-hooks.php @@ -243,7 +243,7 @@ function sportspress_no_terms_links( $term_list, $taxonomy ) { add_filter( 'the_terms', 'sportspress_no_terms_links', 10, 2 ); function sportspress_pre_get_posts( $query ) { - $post_type = $query->query['post_type']; + $post_type = sp_array_value( $query->query, 'post_type', null ); if ( is_sp_post_type( $post_type ) ): $query->set( 'suppress_filters', 0 );