From 614d734492f79244ac81d913c9909ddc57828c60 Mon Sep 17 00:00:00 2001 From: ryan Date: Sun, 18 Jul 2010 14:06:14 +0000 Subject: [PATCH] Remove rededundant code. see #14292 git-svn-id: http://svn.automattic.com/wordpress/trunk@15444 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/canonical.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/wp-includes/canonical.php b/wp-includes/canonical.php index 4e8bee8a99..bf181009a8 100644 --- a/wp-includes/canonical.php +++ b/wp-includes/canonical.php @@ -354,14 +354,6 @@ function redirect_canonical($requested_url=null, $do_redirect=true) { $requested_url = preg_replace_callback('|%[a-fA-F0-9][a-fA-F0-9]|', 'lowercase_octets', $requested_url); } - // Hex encoded octets are case-insensitive. - if ( false !== strpos($requested_url, '%') ) { - function lowercase_octets($matches) { - return strtolower($matches[0]); - } - $requested_url = preg_replace_callback('|%[a-fA-F0-9][a-fA-F0-9]|', 'lowercase_octets', $requested_url); - } - // Note that you can use the "redirect_canonical" filter to cancel a canonical redirect for whatever reason by returning FALSE $redirect_url = apply_filters('redirect_canonical', $redirect_url, $requested_url);