Created
November 3, 2016 18:04
-
-
Save foxydot/ee9eb28c315dfad5efb5b6b3631c474e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| function remove_redirect_guess_404_permalink( $redirect_url ) { | |
| if ( is_404() && !isset($_GET['p']) ) | |
| return false; | |
| return $redirect_url; | |
| } | |
| add_filter( 'redirect_canonical', 'remove_redirect_guess_404_permalink' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment