Created
February 11, 2014 16:04
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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