Skip to content

Instantly share code, notes, and snippets.

@nerrad
Created February 11, 2014 14:53
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/8936298 to your computer and use it in GitHub Desktop.
Save nerrad/8936298 to your computer and use it in GitHub Desktop.
Add this to the file '/core/EE_Module_Request_Router.core.php' around line 74 just inside get_route($WP) method.
//currently there is
public function get_route($WP) {
$this->WP = WP
/**more original code below here**/
}
//you want modify so you see this
public function get_route( $WP ) {
$this->WP = WP
if ( ! EE_Registry::instance()->REQ instanceof EE_Request_Handler )
return NULL;
/**more original code below here**/
}
//ONLY add the two lines I indcated above. That is, these two lines:
if ( ! EE_Registry::instance()->REQ instanceof EE_Request_Handler )
return NULL;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment