Created
February 11, 2014 14:53
Add this to the file '/core/EE_Module_Request_Router.core.php' around line 74 just inside get_route($WP) method.
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
//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