Changeset 3370
- Timestamp:
- 12/28/2005 01:48:29 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/classes.php
r3356 r3370 1462 1462 $home_path = parse_url(get_settings('home')); 1463 1463 $home_path = $home_path['path']; 1464 $home_path = trim($home_path, '/'); 1464 1465 1465 1466 // Trim path info from the end and the leading home path from the … … 1468 1469 // requested permalink. 1469 1470 $req_uri = str_replace($pathinfo, '', $req_uri); 1470 $req_uri = str_replace($home_path, '', $req_uri);1471 1471 $req_uri = trim($req_uri, '/'); 1472 $pathinfo = str_replace($home_path, '', $pathinfo); 1472 $req_uri = preg_replace("|^$home_path|", '', $req_uri); 1473 $req_uri = trim($req_uri, '/'); 1473 1474 $pathinfo = trim($pathinfo, '/'); 1475 $pathinfo = preg_replace("|^$home_path|", '', $pathinfo); 1476 $pathinfo = trim($pathinfo, '/'); 1477 $self = trim($self, '/'); 1478 $self = preg_replace("|^$home_path|", '', $self); 1474 1479 $self = str_replace($home_path, '', $self); 1475 1480 $self = trim($self, '/');
Note: See TracChangeset
for help on using the changeset viewer.