Make WordPress Core

Changeset 2610


Ignore:
Timestamp:
05/18/2005 12:04:30 AM (21 years ago)
Author:
ryan
Message:

More url_to_postid() fixes. http://mosquito.wordpress.org/view.php?id=1324

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r2609 r2610  
    190190    $home_path = parse_url(get_settings('home'));
    191191    $home_path = $home_path['path'];
    192    
    193     // Trim path info from the end and the leading home path from the
    194     // front.  For path info requests, this leaves us with the requesting
    195     // filename, if any.  For 404 requests, this leaves us with the
    196     // requested permalink.
    197     $req_uri = str_replace($pathinfo, '', $req_uri);
     192
     193    $req_uri = str_replace(get_settings('home'), '', $req_uri);
    198194    $req_uri = str_replace($home_path, '', $req_uri);
    199195    $req_uri = trim($req_uri, '/');
Note: See TracChangeset for help on using the changeset viewer.