Opened 11 years ago
Closed 11 years ago
#29392 closed defect (bug) (fixed)
Notice on install screen.
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 4.0 | Priority: | normal |
| Severity: | minor | Version: | 4.0 |
| Component: | HTTP API | Keywords: | has-patch commit dev-reviewed |
| Focuses: | Cc: |
Description
It's an edge case so unsure if we need to patch it. There are a same check in block_request() but that one really seems trivial.
Attachments (3)
Change History (11)
This ticket was mentioned in IRC in #wordpress-dev by markoheijnen. View the logs.
11 years ago
#3
@
11 years ago
- Component changed from General to HTTP API
29392.2.diff makes all three checks consistent.
This ticket was mentioned in IRC in #wordpress-dev by helen. View the logs.
11 years ago
#5
@
11 years ago
- Keywords commit dev-reviewed added
If we're going to do if ( 'localhost' == $check['host'] || isset( $home['host'] ) && $home['host'] == $check['host'] ) I'd like parentheses around isset( $home['host'] ) && $home['host'] == $check['host'] so it's absolutely clear as to the order of operations.
Otherwise, this is good.
#6
@
11 years ago
29392.3.diff adds parentheses.
Edge case or not, I'd add the test you have in your patch. You could also replace
isset()byempty(), and the test would also stop there whether not set or empty. Regardless, I think we're better off with one more edge case test than missing it when needed (since the perf cost is trivial). :)