Make WordPress Core

Changeset 15444


Ignore:
Timestamp:
07/18/2010 02:06:14 PM (14 years ago)
Author:
ryan
Message:

Remove rededundant code. see #14292

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/canonical.php

    r15437 r15444  
    355355    }
    356356
    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 
    365357    // Note that you can use the "redirect_canonical" filter to cancel a canonical redirect for whatever reason by returning FALSE
    366358    $redirect_url = apply_filters('redirect_canonical', $redirect_url, $requested_url);
Note: See TracChangeset for help on using the changeset viewer.