Changeset 31838
- Timestamp:
- 03/20/2015 01:01:52 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/canonical.php
r31459 r31838 83 83 if ( !isset($redirect['query']) ) 84 84 $redirect['query'] = ''; 85 86 // If the original URL ended with non-breaking spaces, they were almost 87 // certainly inserted by accident. Let's remove them, so the reader doesn't 88 // see a 404 error with no obvious cause. 89 $redirect['path'] = preg_replace( '|(%C2%A0)+$|i', '', $redirect['path'] ); 85 90 86 91 // It's not a preview, so remove it from URL
Note: See TracChangeset
for help on using the changeset viewer.