From accc855bdc9a08848e5f2128d2c7c37f0ec78bd4 Mon Sep 17 00:00:00 2001 From: scribu Date: Sat, 11 Dec 2010 09:28:36 +0000 Subject: [PATCH] Remove excess comments from url_to_postid(). See #15771 git-svn-id: https://develop.svn.wordpress.org/trunk@16878 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/rewrite.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/wp-includes/rewrite.php b/wp-includes/rewrite.php index 2d546bc89a..2298890ac4 100644 --- a/wp-includes/rewrite.php +++ b/wp-includes/rewrite.php @@ -268,11 +268,6 @@ function url_to_postid($url) { if ( empty($rewrite) ) return 0; - // $url cleanup by Mark Jaquith - // This fixes things like #anchors, ?query=strings, missing 'www.', - // added 'www.', or added 'index.php/' that will mess up our WP_Query - // and return a false negative - // Get rid of the #anchor $url_split = explode('#', $url); $url = $url_split[0]; @@ -308,8 +303,6 @@ function url_to_postid($url) { $request = $url; - // Done with cleanup - // Look for matches. $request_match = $request; foreach ( (array)$rewrite as $match => $query) {