Skip to content

Instantly share code, notes, and snippets.

@nerrad
Created February 11, 2014 16:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nerrad/8937840 to your computer and use it in GitHub Desktop.
Save nerrad/8937840 to your computer and use it in GitHub Desktop.
possible fix for Warning: Illegal offset type in isset or empty in .../plugins/event-espresso-core-reg/core/CPTs/EE_CPT_Strategy.core.php on line 159
/**
* in file /core/CPTs/EE_CPT_Strategy around line 155 you'll see
* public function pre_get_posts( $WP_Query ) {
* Right after that line on a new line add the following:
*/
if ( ! $WP_Query instanceof WP_Query || empty( $WP_Query->query_vars ) )
return;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment