Remove excess comments from url_to_postid(). See #15771
git-svn-id: https://develop.svn.wordpress.org/trunk@16878 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9c1dd77de9
commit
accc855bdc
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user