Disables WordPress' URL autocorrection guessing feature.
This plugin disables WordPress’ URL autocorrection guessing feature.
If you for example enter the URL http://www.myblog.com/proj
you won’t be redirected
to http://www.myblog.com/project-2013
anymore.
This plugin is based on the example here: https://core.trac.wordpress.org/ticket/16557
disable-url-autocorrect-guessing.php
to the /wp-content/plugins/
directorySince ticket https://core.trac.wordpress.org/ticket/16557 is solved now, the implementation
was changed to use the filter do_redirect_guess_404_permalink as provided in the example here:
https://make.wordpress.org/core/2020/06/26/wordpress-5-5-better-fine-grained-control-of-redirect_guess_404_permalink/
Added check for $_GET['p']
to allow rel=shortlink
according to comment of user esemlabel:
https://core.trac.wordpress.org/ticket/16557#comment:28
First (and possibly last) version.