Opened 3 years ago

Closed 3 years ago

#12283 closed defect (bug) (fixed)

Tests do warnings on unset variables

Reported by: hakre Owned by: westi
Priority: normal Milestone: 3.0
Component: Warnings/Notices Version: 3.0
Severity: normal Keywords: has-patch
Cc:

Description

Just a small warning / unset variable. Experienced that in running tests.

Attachments (5)

12283.patch (635 bytes) - added by hakre 3 years ago.
12283.2.patch (1.2 KB) - added by hakre 3 years ago.
Second patch incl. some $_SERVER defaults in case those are not set (some environments do not set them)
12283.3.patch (1.1 KB) - added by hakre 3 years ago.
12283.4.patch (476 bytes) - added by hakre 3 years ago.
theme.php only
12283.testsuite.patch (568 bytes) - added by hakre 3 years ago.
Patch for the testuite / wp-test.php

Download all attachments as: .zip

Change History (12)

hakre3 years ago

hakre3 years ago

Second patch incl. some $_SERVER defaults in case those are not set (some environments do not set them)

  • Summary changed from get_theme_root warns to Tests do warnings on unset variables

Changed the title to better reflect the case. Related: My Testrun/TODO.

The wp-settings.php should be moved into wp_fix_server_vars(). Is this ready to go in, or is this a catch-all ticket?

hakre3 years ago

wp-settings.php moved into wp_fix_server_vars(). This is ready to go on then.

hakre3 years ago

theme.php only

(In [13225]) Fix potential notice. props hakre, see #12283

I put the leftover changes into wp-test.php now, so this is in here for westi.

hakre3 years ago

Patch for the testuite / wp-test.php

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.