diff --git a/wp-includes/rewrite.php b/wp-includes/rewrite.php index 2d546bc89..2298890ac 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) {