#36674 closed enhancement (fixed)
Make WP->parse_request() variables more self-descriptive
| Reported by: | ericlewis | Owned by: | ericlewis |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.6 |
| Component: | Rewrite Rules | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
The variable names $req_uri and $request make WP->parse_request() a bit hard to follow.
Attachments (1)
Change History (7)
#2
@
11 years ago
- Keywords has-patch added
In attachment:36674.diff, I suggest using the names $requested_file and $requested_path for clarity.
Note:
See TracTickets
for help on using tickets.
This is related to my question in #18877
We can't boil down the function input to
$request, because the rewrite matching engine needs to know what the requested filename as well as the URL path in the case of PATH_INFO links.