mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-10 18:37:58 +01:00
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:
parent
5bc9f1051c
commit
ff33f41daf
@ -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