#38 closed defect (invalid)

Undefined var breaks calls to http() with debug mode on

Reported by: benbalter 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)

38.diff (486 bytes) - added by benbalter 13 months ago.

Download all attachments as: .zip

Change History (2)

  • Resolution set to invalid
  • Status changed from new to closed

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.

Note: See TracTickets for help on using tickets.