Opened 13 months ago
Closed 11 months ago
#38 closed defect (invalid)
Undefined var breaks calls to http() with debug mode on
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | Legacy - Improve Framework |
| Component: | Test Framework | Keywords: | |
| Cc: | benbalter |
Description
When reseting $GLOBALS['wp']->main(), http() assumes there's a query, which throws an undefined var when there's not. Conditioned on isset() like used previously in the same funcion.
Attachments (1)
Change History (2)
Note: See
TracTickets for help on using
tickets.

We'd still have to call $wp->main(), even without an argument. But the new runner now does this:
if ( ! isset( $parts['query'] ) ) { $parts['query'] = ''; }So this is now fixed.