Changeset 15444
- Timestamp:
- 07/18/2010 02:06:14 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/canonical.php
r15437 r15444 355 355 } 356 356 357 // Hex encoded octets are case-insensitive.358 if ( false !== strpos($requested_url, '%') ) {359 function lowercase_octets($matches) {360 return strtolower($matches[0]);361 }362 $requested_url = preg_replace_callback('|%[a-fA-F0-9][a-fA-F0-9]|', 'lowercase_octets', $requested_url);363 }364 365 357 // Note that you can use the "redirect_canonical" filter to cancel a canonical redirect for whatever reason by returning FALSE 366 358 $redirect_url = apply_filters('redirect_canonical', $redirect_url, $requested_url);
Note: See TracChangeset
for help on using the changeset viewer.