Changeset 1431699
- Timestamp:
- 06/06/2016 07:16:48 PM (10 years ago)
- Location:
- disable-url-autocorrect-guessing/trunk
- Files:
-
- 2 edited
-
disable-url-autocorrect-guessing.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
disable-url-autocorrect-guessing/trunk/disable-url-autocorrect-guessing.php
r918479 r1431699 4 4 Description: 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. 5 5 Author: Hauke Pribnow (based on comment of nacin) 6 Version: 1. 06 Version: 1.1 7 7 */ 8 8 … … 10 10 11 11 function remove_redirect_guess_404_permalink( $redirect_url ) { 12 if ( is_404() )12 if ( is_404() && !isset($_GET['p']) ) 13 13 return false; 14 14 return $redirect_url; -
disable-url-autocorrect-guessing/trunk/readme.txt
r1238755 r1431699 3 3 Tags: redirect, autocorrect, url, canonical 4 4 Requires at least: 2.3 5 Tested up to: 4. 36 Stable tag: 1. 0c5 Tested up to: 4.5.2 6 Stable tag: 1.1 7 7 License: Public Domain 8 8 … … 24 24 == Changelog == 25 25 26 = 1.1 = 27 Added check for `$_GET['p']` to allow `rel=shortlink` according to comment of user esemlabel: 28 https://core.trac.wordpress.org/ticket/16557#comment:28 29 26 30 = 1.0 = 27 31 * First (and possibly last) version.
Note: See TracChangeset
for help on using the changeset viewer.