Opened 14 years ago
Closed 13 years ago
#22209 closed enhancement (fixed)
Simplify logic to generate home path when parsing request
| Reported by: | evansolomon | Owned by: | nacin |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.7 |
| Component: | Query | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
In WP::parse_request() we go through a few steps to generate the $home_path variable. Since we now require PHP 5.2, we can use parse_url()'s second argument to get the path directly.
Attachments (1)
Change History (4)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
That whole area could use some cleanup.
Like, replacing this:
with this:
list( $req_uri ) = explode('?', $req_uri);or maybe even using
parse_str().