Remove excess comments from url_to_postid(). See #15771

git-svn-id: http://svn.automattic.com/wordpress/trunk@16878 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
scribu 2010-12-11 09:28:36 +00:00
parent 5bc9f1051c
commit ff33f41daf
1 changed files with 0 additions and 7 deletions

View File

@ -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) {